pub enum VariableValue {
Primitive(PrimitiveValue),
DynamicallySized(DynamicallySizedValue),
}
Expand description
A value type that can be either statically sized (primitive) or variably sized (dynamic)
Variants§
Primitive(PrimitiveValue)
DynamicallySized(DynamicallySizedValue)
Implementations§
Source§impl VariableValue
impl VariableValue
Trait Implementations§
Source§impl Clone for VariableValue
impl Clone for VariableValue
Source§fn clone(&self) -> VariableValue
fn clone(&self) -> VariableValue
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 VariableValue
impl Debug for VariableValue
Source§impl Display for VariableValue
impl Display for VariableValue
Source§impl From<DynamicallySizedValue> for VariableValue
impl From<DynamicallySizedValue> for VariableValue
Source§fn from(value: DynamicallySizedValue) -> Self
fn from(value: DynamicallySizedValue) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveValue> for VariableValue
impl From<PrimitiveValue> for VariableValue
Source§fn from(value: PrimitiveValue) -> Self
fn from(value: PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VariableValue
impl PartialEq for VariableValue
impl StructuralPartialEq for VariableValue
Auto Trait Implementations§
impl Freeze for VariableValue
impl RefUnwindSafe for VariableValue
impl Send for VariableValue
impl Sync for VariableValue
impl Unpin for VariableValue
impl UnwindSafe for VariableValue
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