pub struct Unchanged;Expand description
A structural mutation that keeps its input without acquiring another owner.
This marker may be returned directly from a map or mutation callback. A pre-order map still descends into the original value’s children.
Trait Implementations§
Source§impl AnyCompatible for Unchanged
impl AnyCompatible for Unchanged
Source§unsafe fn copy_to_any_view(_src: &Self, data: &mut TVMFFIAny)
unsafe fn copy_to_any_view(_src: &Self, data: &mut TVMFFIAny)
the value to copy to TVMFFIAny
Source§unsafe fn move_to_any(src: Self, data: &mut TVMFFIAny)
unsafe fn move_to_any(src: Self, data: &mut TVMFFIAny)
consume the value to move to Any
unsafe fn check_any_strict(data: &TVMFFIAny) -> bool
Source§unsafe fn copy_from_any_view_after_check(_data: &TVMFFIAny) -> Self
unsafe fn copy_from_any_view_after_check(_data: &TVMFFIAny) -> Self
Copy value from TVMFFIAny after checking
caller must ensure that the value is compatible with the type
Source§unsafe fn move_from_any_after_check(_data: &mut TVMFFIAny) -> Self
unsafe fn move_from_any_after_check(_data: &mut TVMFFIAny) -> Self
the value to move from TVMFFIAny
NOTE: pay very careful attention to avoid memory leak! Read more
Source§unsafe fn try_cast_from_any_view(data: &TVMFFIAny) -> Result<Self, ()>
unsafe fn try_cast_from_any_view(data: &TVMFFIAny) -> Result<Self, ()>
try to cast the value from AnyView
Source§fn type_schema() -> String
fn type_schema() -> String
The type schema of the type: the JSON object C++
TypeTraits<T>::TypeSchema writes, which the type schemas of functions
and fields embed. Read moreSource§unsafe fn is_undefined(field: *const Self) -> bool
unsafe fn is_undefined(field: *const Self) -> bool
Whether
field, which holds a value of this type or all-zero bytes,
holds all-zero bytes that are no value of this type, as a null object
reference, a string of type index None or a zero device type: a field
that a creator left undefined for reflection to set, as C++ UnsafeInit
leaves a reference undefined (null). Unlike a C++ undefined reference,
it is no value; a nullable reference is Option<T>, whose None is a
defined value. Read moreSource§fn get_mismatch_type_info(data: &TVMFFIAny) -> String
fn get_mismatch_type_info(data: &TVMFFIAny) -> String
Get the type key of a type when TryCastFromAnyView fails.
impl Copy for Unchanged
impl Eq for Unchanged
impl StructuralPartialEq for Unchanged
Auto Trait Implementations§
impl Freeze for Unchanged
impl RefUnwindSafe for Unchanged
impl Send for Unchanged
impl Sync for Unchanged
impl Unpin for Unchanged
impl UnwindSafe for Unchanged
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