pub struct StructuralVisitorObj { /* private fields */ }Expand description
The native visitor state, laid out as the prefix of the C++
StructuralVisitorObj.
Implementations§
Source§impl StructuralVisitorObj
impl StructuralVisitorObj
Sourcepub unsafe fn call_structural_visit_hook_raw(
runtime: *mut Self,
value: TVMFFIAny,
hook: TVMFFIAny,
) -> TVMFFIAny
pub unsafe fn call_structural_visit_hook_raw( runtime: *mut Self, value: TVMFFIAny, hook: TVMFFIAny, ) -> TVMFFIAny
Call the registered visit hook (native pointer or packed function) on value.
§Safety
runtime is live with its dispatcher published, value and hook outlive the
call, and a native hook has the visit ABI for this runtime’s layout and obeys
StructuralVisitorBase’s non-escaping contract.
Trait Implementations§
Source§impl Default for StructuralVisitorObj
impl Default for StructuralVisitorObj
Source§impl StructuralVisitorBase for StructuralVisitorObj
impl StructuralVisitorBase for StructuralVisitorObj
Source§fn new() -> Result<Self>
fn new() -> Result<Self>
Initialize the complete base before the engine installs its runtime header.
Source§fn type_index() -> i32
fn type_index() -> i32
Native type registered for this complete base layout.
Source§unsafe fn default_visit_raw(runtime: *mut Self, value: AnyView<'_>) -> TVMFFIAny
unsafe fn default_visit_raw(runtime: *mut Self, value: AnyView<'_>) -> TVMFFIAny
Descend from a borrowed value without dispatching that value again.
Return one owning ABI None, Error, or VisitInterrupt value.
Children reenter the installed vtable. The ordinary implementation accesses
only the visitor prefix, so specialized bases may reuse it. Read more
Auto Trait Implementations§
impl !Freeze for StructuralVisitorObj
impl !RefUnwindSafe for StructuralVisitorObj
impl !Send for StructuralVisitorObj
impl !Sync for StructuralVisitorObj
impl Unpin for StructuralVisitorObj
impl UnsafeUnpin for StructuralVisitorObj
impl UnwindSafe for StructuralVisitorObj
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