pub enum TypeExpr {
Path(TypePath),
Mapping(Box<MappingType>),
Array(Box<ArrayType>),
Tuple(TypeTuple),
}Expand description
A type expression in the source code
Variants§
Path(TypePath)
A simple or qualified path type: uint256, address, ContractName
Mapping(Box<MappingType>)
Mapping type: mapping(address => uint256)
Array(Box<ArrayType>)
An array type: uint256[] (dynamic) or uint256[10] (fixed)
Tuple(TypeTuple)
A tuple type: (uint256, bool)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeExpr
impl<'de> Deserialize<'de> for TypeExpr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TypeExpr
Auto Trait Implementations§
impl Freeze for TypeExpr
impl RefUnwindSafe for TypeExpr
impl Send for TypeExpr
impl Sync for TypeExpr
impl Unpin for TypeExpr
impl UnwindSafe for TypeExpr
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