#[repr(C)]pub struct DynamicValueDef {
pub vtable: &'static DynamicValueVTable,
}Expand description
Definition for dynamic value types.
Unlike other Def variants that describe a fixed structure, DynamicValueDef
describes a type that can hold any of: null, bool, number, string, bytes,
array, or object - determined at runtime.
Fields§
§vtable: &'static DynamicValueVTableVtable for interacting with the dynamic value
Implementations§
Source§impl DynamicValueDef
impl DynamicValueDef
Sourcepub const fn new(vtable: &'static DynamicValueVTable) -> Self
pub const fn new(vtable: &'static DynamicValueVTable) -> Self
Construct a DynamicValueDef from its vtable.
Trait Implementations§
Source§impl Clone for DynamicValueDef
impl Clone for DynamicValueDef
Source§fn clone(&self) -> DynamicValueDef
fn clone(&self) -> DynamicValueDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DynamicValueDef
impl Debug for DynamicValueDef
Source§impl Facet<'_> for DynamicValueDef
impl Facet<'_> for DynamicValueDef
impl Copy for DynamicValueDef
Auto Trait Implementations§
impl Freeze for DynamicValueDef
impl RefUnwindSafe for DynamicValueDef
impl Send for DynamicValueDef
impl Sync for DynamicValueDef
impl Unpin for DynamicValueDef
impl UnwindSafe for DynamicValueDef
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