Trait alloy_sol_types::SolEnum
source · pub trait SolEnum: Sized + Copy + Into<u8> + TryFrom<u8, Error = Error> {
const COUNT: usize;
// Provided methods
fn tokenize(self) -> WordToken { ... }
fn abi_decode(data: &[u8], validate: bool) -> Result<Self> { ... }
fn abi_encode_raw(self, out: &mut Vec<u8>) { ... }
fn abi_encode(self) -> Vec<u8> ⓘ { ... }
}
Expand description
Required Associated Constants§
Provided Methods§
sourcefn abi_decode(data: &[u8], validate: bool) -> Result<Self>
fn abi_decode(data: &[u8], validate: bool) -> Result<Self>
ABI decode the enum from the given buffer.
sourcefn abi_encode_raw(self, out: &mut Vec<u8>)
fn abi_encode_raw(self, out: &mut Vec<u8>)
ABI encode the enum into the given buffer.
sourcefn abi_encode(self) -> Vec<u8> ⓘ
fn abi_encode(self) -> Vec<u8> ⓘ
ABI encode the enum.
Object Safety§
This trait is not object safe.