Enum ethabi::param_type::ParamType [−][src]
pub enum ParamType { Address, Bytes, Int(usize), Uint(usize), Bool, String, Array(Box<ParamType>), FixedBytes(usize), FixedArray(Box<ParamType>, usize), }
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.
Methods
impl ParamType
[src]
impl ParamType
pub fn is_empty_bytes_valid_encoding(&self) -> bool
[src]
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
Trait Implementations
impl<'a> Deserialize<'a> for ParamType
[src]
impl<'a> Deserialize<'a> for ParamType
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
impl Debug for ParamType
[src]
impl Debug for ParamType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ParamType
[src]
impl Clone for ParamType
fn clone(&self) -> ParamType
[src]
fn clone(&self) -> ParamType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for ParamType
[src]
impl PartialEq for ParamType
fn eq(&self, other: &ParamType) -> bool
[src]
fn eq(&self, other: &ParamType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ParamType) -> bool
[src]
fn ne(&self, other: &ParamType) -> bool
This method tests for !=
.
impl Display for ParamType
[src]
impl Display for ParamType