pub enum ParamType {
Address,
Uint(usize),
Int(usize),
Bool,
FixedBytes(usize),
Bytes,
String,
Array(Box<ParamType>),
}Expand description
The ABI type of a value to decode. Needed for decoding a call’s return data, since the raw bytes carry no type information.
Variants§
Address
address
Uint(usize)
uint<M> (the bit width is informational; decoding always reads 32 bytes)
Int(usize)
int<M>
Bool
bool
FixedBytes(usize)
bytes<N>
Bytes
dynamic bytes
String
string
Array(Box<ParamType>)
T[]
Trait Implementations§
impl StructuralPartialEq for ParamType
Auto Trait Implementations§
impl Freeze for ParamType
impl RefUnwindSafe for ParamType
impl Send for ParamType
impl Sync for ParamType
impl Unpin for ParamType
impl UnsafeUnpin for ParamType
impl UnwindSafe for ParamType
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