Enum sway_ir::constant::ConstantValue
source · pub enum ConstantValue {
Undef,
Unit,
Bool(bool),
Uint(u64),
B256([u8; 32]),
String(Vec<u8>),
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(Vec<u8>)
Array(Vec<Constant>)
Struct(Vec<Constant>)
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 more