Enum sway_ir::constant::ConstantValue
source · [−]pub enum ConstantValue {
Undef,
Unit,
Bool(bool),
Uint(u64),
B256([u8; 32]),
String(String),
Array(Vec<Constant>),
Struct(Vec<Constant>),
}
Expand description
A constant representation of each of the supported Type
s.
Variants
Undef
Unit
Bool(bool)
Uint(u64)
B256([u8; 32])
String(String)
Array(Vec<Constant>)
Struct(Vec<Constant>)
Trait Implementations
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
Mutably borrows from an owned value. Read more