Enum ethabi::param_type::ParamType
source · [−]pub enum ParamType {
Address,
Bytes,
Int(usize),
Uint(usize),
Bool,
String,
Array(Box<ParamType>),
FixedBytes(usize),
FixedArray(Box<ParamType>, usize),
Tuple(Vec<Box<ParamType>>),
}
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<ParamType>)
Array of unknown size.
FixedBytes(usize)
Vector of bytes with fixed size.
FixedArray(Box<ParamType>, usize)
Array with fixed size.
Tuple(Vec<Box<ParamType>>)
Tuple containing different types
Implementations
sourceimpl ParamType
impl ParamType
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 ParamType is dynamic used to decide how the ParamType should be encoded
Trait Implementations
sourceimpl<'a> Deserialize<'a> for ParamType
impl<'a> Deserialize<'a> for ParamType
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ParamType
Auto Trait Implementations
impl RefUnwindSafe for ParamType
impl Send for ParamType
impl Sync for ParamType
impl Unpin for ParamType
impl UnwindSafe for ParamType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more