Enum semantic_analyzer::ast::PrimitiveValue
source · pub enum PrimitiveValue {
}Expand description
PrimitiveValue represents primitive value element of AST.
Values based on primitive types.
Used for ConstantValue and ExpressionValue.
Variants§
U8(u8)
U16(u16)
U32(u32)
U64(u64)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
F32(f32)
F64(f64)
Bool(bool)
String(String)
Char(char)
Ptr
None
Implementations§
Trait Implementations§
source§impl Clone for PrimitiveValue
impl Clone for PrimitiveValue
source§fn clone(&self) -> PrimitiveValue
fn clone(&self) -> PrimitiveValue
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 PrimitiveValue
impl Debug for PrimitiveValue
source§impl From<PrimitiveValue> for PrimitiveValue
impl From<PrimitiveValue> for PrimitiveValue
source§fn from(value: PrimitiveValue) -> Self
fn from(value: PrimitiveValue) -> Self
Converts to this type from the input type.
source§impl PartialEq for PrimitiveValue
impl PartialEq for PrimitiveValue
source§fn eq(&self, other: &PrimitiveValue) -> bool
fn eq(&self, other: &PrimitiveValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PrimitiveValue
Auto Trait Implementations§
impl RefUnwindSafe for PrimitiveValue
impl Send for PrimitiveValue
impl Sync for PrimitiveValue
impl Unpin for PrimitiveValue
impl UnwindSafe for PrimitiveValue
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