pub struct TypeWalkVisitor { /* private fields */ }Expand description
The cxx extern "Rust" opaque the C++ type walk drives by calling its &mut self methods,
each forwarding into the TypeWalkSink it was built over.
cxx generates a C++ class with a member function per method below; facade/typewalk_cxx.cc
receives a TypeWalkVisitor& and calls them. The visitor holds the sink as a lifetime-erased
raw pointer: the walk_type_named/walk_type_ordinal/walk_func_type drivers are its
only constructors, and each keeps the borrowed sink alive across the one synchronous walk, so
the pointer is always valid and unaliased when a method reborrows it.
Auto Trait Implementations§
impl !RefUnwindSafe for TypeWalkVisitor
impl !Send for TypeWalkVisitor
impl !Sync for TypeWalkVisitor
impl !UnwindSafe for TypeWalkVisitor
impl Freeze for TypeWalkVisitor
impl Unpin for TypeWalkVisitor
impl UnsafeUnpin for TypeWalkVisitor
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