#[repr(C)]pub struct Visitor { /* private fields */ }
Implementations§
Source§impl Visitor
impl Visitor
Sourcepub unsafe fn trace<T>(&mut self, t: *const T)where
T: TraceTrait,
pub unsafe fn trace<T>(&mut self, t: *const T)where
T: TraceTrait,
Trace method for raw pointers. Prefer the versions for managed pointers.
Sourcepub fn trace_ref<T>(&mut self, object: &T)where
T: TraceTrait,
pub fn trace_ref<T>(&mut self, object: &T)where
T: TraceTrait,
Trace method for inlined objects that are not allocated themselves but otherwise follow managed heap layout and have a trace() method.
Sourcepub fn trace_gcref<T>(&mut self, object: GcRef<T>)where
T: TraceTrait,
pub fn trace_gcref<T>(&mut self, object: GcRef<T>)where
T: TraceTrait,
Traces typed gc reference.
Sourcepub fn trace_untyped(&mut self, object: UntypedGcRef)
pub fn trace_untyped(&mut self, object: UntypedGcRef)
Traces untyped gc reference.
pub fn trace_conservatively(&mut self, from: *const u8, to: *const u8)
Auto Trait Implementations§
impl Freeze for Visitor
impl !RefUnwindSafe for Visitor
impl !Send for Visitor
impl !Sync for Visitor
impl Unpin for Visitor
impl !UnwindSafe for Visitor
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