pub struct StructuralMutatorObj { /* private fields */ }Expand description
The native mutator state, laid out as the prefix of the C++
StructuralMutatorObj, with no Rust traversal state.
Implementations§
Source§impl StructuralMutatorObj
impl StructuralMutatorObj
Sourcepub unsafe fn call_structural_mutate_hook_raw(
runtime: *mut Self,
value: TVMFFIAny,
hook: TVMFFIAny,
) -> TVMFFIAny
pub unsafe fn call_structural_mutate_hook_raw( runtime: *mut Self, value: TVMFFIAny, hook: TVMFFIAny, ) -> TVMFFIAny
Call the registered mutation hook (native pointer or packed function) on value.
§Safety
runtime is live with its dispatcher published, value and hook outlive the call,
the caller’s mode allows any in-place mutation the hook performs, and a native hook
has the mutation ABI for this runtime’s layout and obeys StructuralMutatorBase’s
non-escaping contract.
Trait Implementations§
Source§impl Default for StructuralMutatorObj
impl Default for StructuralMutatorObj
Source§impl StructuralMutatorBase for StructuralMutatorObj
impl StructuralMutatorBase for StructuralMutatorObj
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_mutate_raw(
runtime: *mut Self,
value: MutationView<'_>,
) -> TVMFFIAny
unsafe fn default_mutate_raw( runtime: *mut Self, value: MutationView<'_>, ) -> TVMFFIAny
Descend from a borrowed view without dispatching that value again. Read more
Auto Trait Implementations§
impl !Freeze for StructuralMutatorObj
impl !RefUnwindSafe for StructuralMutatorObj
impl !Send for StructuralMutatorObj
impl !Sync for StructuralMutatorObj
impl Unpin for StructuralMutatorObj
impl UnsafeUnpin for StructuralMutatorObj
impl UnwindSafe for StructuralMutatorObj
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