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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.