pub enum ConstantValue {
Bool(bool),
I32(i32),
I64(i64),
U32(u32),
U64(u64),
F32(f32),
F64(f64),
Null,
Array(Vec<ConstantValue>),
Struct(Vec<ConstantValue>),
}Expand description
Constant values.
Variants§
Bool(bool)
Boolean constant.
I32(i32)
32-bit signed integer.
I64(i64)
64-bit signed integer.
U32(u32)
32-bit unsigned integer.
U64(u64)
64-bit unsigned integer.
F32(f32)
32-bit float.
F64(f64)
64-bit float.
Null
Null pointer.
Array(Vec<ConstantValue>)
Array of constants.
Struct(Vec<ConstantValue>)
Struct constant.
Implementations§
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 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