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