pub enum Lit {
Bool(LitBool),
Hex(LitHexStr),
Number(LitNumber),
Str(LitStr),
Unicode(LitUnicodeStr),
}
Expand description
A Solidity literal such as a string or integer or boolean.
Variants§
Bool(LitBool)
A boolean literal: true
or false
.
Hex(LitHexStr)
A hex string literal: hex"1234"
.
Number(LitNumber)
An integer or fixed-point number literal: 1
or 1.0
.
Str(LitStr)
A string literal.
Unicode(LitUnicodeStr)
A unicode string literal.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lit
impl RefUnwindSafe for Lit
impl !Send for Lit
impl !Sync for Lit
impl Unpin for Lit
impl UnwindSafe for Lit
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