pub enum ConstantValue<'a> {
Constant(ConstantName<'a>),
Value(PrimitiveValue),
}
Expand description
ConstantValue
constant value element of AST.
Used for ConstantExpression
. Constant value basic entities:
constant
it can contain other constantvalue
- primitive value (like numbers etc.)
Variants§
Constant(ConstantName<'a>)
Value(PrimitiveValue)
Trait Implementations§
Source§impl<'a> Clone for ConstantValue<'a>
impl<'a> Clone for ConstantValue<'a>
Source§fn clone(&self) -> ConstantValue<'a>
fn clone(&self) -> ConstantValue<'a>
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<'a> Debug for ConstantValue<'a>
impl<'a> Debug for ConstantValue<'a>
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<'a> PartialEq for ConstantValue<'a>
impl<'a> PartialEq for ConstantValue<'a>
impl<'a> StructuralPartialEq for ConstantValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConstantValue<'a>
impl<'a> RefUnwindSafe for ConstantValue<'a>
impl<'a> Send for ConstantValue<'a>
impl<'a> Sync for ConstantValue<'a>
impl<'a> Unpin for ConstantValue<'a>
impl<'a> UnwindSafe for ConstantValue<'a>
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