Enum sway_core::parse_tree::Literal [−][src]
pub enum Literal<'sc> {
U8(u8),
U16(u16),
U32(u32),
U64(u64),
String(&'sc str),
Boolean(bool),
Byte(u8),
B256([u8; 32]),
}
Variants
U8(u8)
Tuple Fields
0: u8
U16(u16)
Tuple Fields
0: u16
U32(u32)
Tuple Fields
0: u32
U64(u64)
Tuple Fields
0: u64
String(&'sc str)
Tuple Fields
0: &'sc str
Boolean(bool)
Tuple Fields
0: bool
Byte(u8)
Tuple Fields
0: u8
B256([u8; 32])
Trait Implementations
Auto Trait Implementations
impl<'sc> RefUnwindSafe for Literal<'sc>
impl<'sc> UnwindSafe for Literal<'sc>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.