Struct rquickjs_core::class::Tracer
source · 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: JS_MarkFunc) -> Self
pub unsafe fn from_ffi(rt: *mut JSRuntime, mark_func: JS_MarkFunc) -> Self
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> 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