pub enum ParamKind {
Address,
Bytes,
Int(usize),
Uint(usize),
Bool,
String,
Array(Box<ParamKind>),
FixedBytes(usize),
FixedArray(Box<ParamKind>, usize),
Tuple(Vec<Box<ParamKind>>),
}Expand description
Function and event param types.
Variants§
Address
Address.
Bytes
Bytes.
Int(usize)
Signed integer.
Uint(usize)
Unsigned integer.
Bool
Boolean.
String
String.
Array(Box<ParamKind>)
Array of unknown size.
FixedBytes(usize)
Vector of bytes with fixed size.
FixedArray(Box<ParamKind>, usize)
Array with fixed size.
Tuple(Vec<Box<ParamKind>>)
Tuple containing different types
Implementations§
Source§impl ParamKind
impl ParamKind
Sourcepub fn is_empty_bytes_valid_encoding(&self) -> bool
pub fn is_empty_bytes_valid_encoding(&self) -> bool
returns whether a zero length byte slice (0x) is
a valid encoded form of this param type
Sourcepub fn is_dynamic(&self) -> bool
pub fn is_dynamic(&self) -> bool
returns whether a ParamKind is dynamic used to decide how the ParamKind should be encoded
Trait Implementations§
impl StructuralPartialEq for ParamKind
Auto Trait Implementations§
impl Freeze for ParamKind
impl RefUnwindSafe for ParamKind
impl Send for ParamKind
impl Sync for ParamKind
impl Unpin for ParamKind
impl UnwindSafe for ParamKind
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