pub enum ConstantValue {
Constant(ConstantName),
Value(PrimitiveValue),
}
Expand description
Constant value can contain other constant or primitive value
Variants§
Constant(ConstantName)
Value(PrimitiveValue)
Trait Implementations§
Source§impl Clone for ConstantValue
impl Clone for ConstantValue
Source§fn clone(&self) -> ConstantValue
fn clone(&self) -> ConstantValue
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 ConstantValue
impl Debug for ConstantValue
Source§impl From<ConstantValue<'_>> for ConstantValue
impl From<ConstantValue<'_>> for ConstantValue
Source§fn from(value: ConstantValue<'_>) -> Self
fn from(value: ConstantValue<'_>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConstantValue
impl PartialEq for ConstantValue
impl StructuralPartialEq for ConstantValue
Auto Trait Implementations§
impl Freeze for ConstantValue
impl RefUnwindSafe for ConstantValue
impl Send for ConstantValue
impl Sync for ConstantValue
impl Unpin for ConstantValue
impl UnwindSafe for ConstantValue
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