pub struct Tracer<'a, 'js> { /* private fields */ }
Expand description
An object used for tracing references
Implementations§
source§impl<'a, 'js> Tracer<'a, 'js>
impl<'a, 'js> Tracer<'a, 'js>
sourcepub unsafe fn from_ffi(
rt: *mut JSRuntime,
mark_func: Option<unsafe extern "C" fn(_: *mut JSRuntime, _: *mut JSGCObjectHeader)>
) -> Tracer<'a, 'js>
pub unsafe fn from_ffi( rt: *mut JSRuntime, mark_func: Option<unsafe extern "C" fn(_: *mut JSRuntime, _: *mut JSGCObjectHeader)> ) -> Tracer<'a, 'js>
Create a tracer from the c implementation.
§Safety
Caller must ensure that the trace doesn’t outlive the lifetime of the mark_func
and
rt
pointer
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'js> Freeze for Tracer<'a, 'js>
impl<'a, 'js> RefUnwindSafe for Tracer<'a, 'js>
impl<'a, 'js> !Send for Tracer<'a, 'js>
impl<'a, 'js> !Sync for Tracer<'a, 'js>
impl<'a, 'js> Unpin for Tracer<'a, 'js>
impl<'a, 'js> !UnwindSafe for Tracer<'a, 'js>
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> 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