pub enum Type {
Bool,
Uint(u16),
Address,
String,
Field,
Hash,
DynamicBytes,
Mapping {
loc: Loc,
key: Box<Expression>,
key_name: Option<Identifier>,
value: Box<Expression>,
value_name: Option<Identifier>,
},
}
Variants§
Bool
Uint(u16)
Address
String
Field
Hash
DynamicBytes
Fields
Mapping
mapping(<key> [key_name] => <value> [value_name])
Fields
§
key: Box<Expression>
The key expression.
§
key_name: Option<Identifier>
The optional key identifier.
§
value: Box<Expression>
The value expression.
§
value_name: Option<Identifier>
The optional value identifier.
Trait Implementations§
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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