pub enum CtfeValue {
Int(i64),
Float(f64),
Bool(bool),
String(String),
List(Vec<CtfeValue>),
Tuple(Vec<CtfeValue>),
Constructor(String, Vec<CtfeValue>),
Undef,
}Expand description
A fully-evaluated compile-time value.
Variants§
Int(i64)
Signed 64-bit integer (covers Nat for small values).
Float(f64)
64-bit floating-point value.
Bool(bool)
Boolean value.
String(String)
String value.
List(Vec<CtfeValue>)
A heterogeneous list of values.
Tuple(Vec<CtfeValue>)
A tuple of values.
Constructor(String, Vec<CtfeValue>)
An algebraic data type constructor: name(fields...).
Undef
Undefined / not yet evaluated (bottom).
Implementations§
Trait Implementations§
impl StructuralPartialEq for CtfeValue
Auto Trait Implementations§
impl Freeze for CtfeValue
impl RefUnwindSafe for CtfeValue
impl Send for CtfeValue
impl Sync for CtfeValue
impl Unpin for CtfeValue
impl UnsafeUnpin for CtfeValue
impl UnwindSafe for CtfeValue
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