Struct mozjs_sys::jsapi::JS::NotableStringInfo
source · #[repr(C)]pub struct NotableStringInfo {
pub _base: StringInfo,
pub buffer: UniqueChars,
pub length: usize,
}
Expand description
Holds data about a notable string (one which, counting all duplicates, uses more than a certain amount of memory) so we can report it individually.
The only difference between this class and StringInfo is that NotableStringInfo holds a copy of some or all of the string’s chars.
Fields§
§_base: StringInfo
§buffer: UniqueChars
§length: usize
Trait Implementations§
source§impl Clone for NotableStringInfo
impl Clone for NotableStringInfo
source§fn clone(&self) -> NotableStringInfo
fn clone(&self) -> NotableStringInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NotableStringInfo
impl Debug for NotableStringInfo
source§impl PartialEq for NotableStringInfo
impl PartialEq for NotableStringInfo
impl Copy for NotableStringInfo
impl StructuralPartialEq for NotableStringInfo
Auto Trait Implementations§
impl Freeze for NotableStringInfo
impl RefUnwindSafe for NotableStringInfo
impl Send for NotableStringInfo
impl Sync for NotableStringInfo
impl Unpin for NotableStringInfo
impl UnwindSafe for NotableStringInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more