Enum semantic_analyzer::ast::ConstantValue
source · pub enum ConstantValue<'a> {
Constant(ConstantName<'a>),
Value(PrimitiveValue),
}
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 copy 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<ConstantValue<'a>> for ConstantValue<'a>
impl<'a> PartialEq<ConstantValue<'a>> for ConstantValue<'a>
source§fn eq(&self, other: &ConstantValue<'a>) -> bool
fn eq(&self, other: &ConstantValue<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for ConstantValue<'a>
Auto Trait Implementations§
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