Struct mozjs::jsapi::JS::SourceText
source · #[repr(C)]pub struct SourceText<Unit> {
pub units_: *const Unit,
pub length_: u32,
pub ownsUnits_: bool,
pub _phantom_0: PhantomData<UnsafeCell<Unit>>,
}
Fields§
§units_: *const Unit
|char16_t| or |Utf8Unit| source units of uncertain validity.
length_: u32
The length in code units of |units_|.
ownsUnits_: bool
Whether this owns |units_| or merely observes source units owned by some other object.
_phantom_0: PhantomData<UnsafeCell<Unit>>
Trait Implementations§
source§impl<Unit> Debug for SourceText<Unit>where
Unit: Debug,
impl<Unit> Debug for SourceText<Unit>where Unit: Debug,
source§impl<Unit> PartialEq<SourceText<Unit>> for SourceText<Unit>where
Unit: PartialEq<Unit>,
impl<Unit> PartialEq<SourceText<Unit>> for SourceText<Unit>where Unit: PartialEq<Unit>,
source§fn eq(&self, other: &SourceText<Unit>) -> bool
fn eq(&self, other: &SourceText<Unit>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<Unit> StructuralPartialEq for SourceText<Unit>
Auto Trait Implementations§
impl<Unit> !RefUnwindSafe for SourceText<Unit>
impl<Unit> !Send for SourceText<Unit>
impl<Unit> !Sync for SourceText<Unit>
impl<Unit> Unpin for SourceText<Unit>where Unit: Unpin,
impl<Unit> UnwindSafe for SourceText<Unit>where Unit: UnwindSafe + RefUnwindSafe,
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