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