Trait fuels_core::Parameterize
source · [−]pub trait Parameterize {
fn param_types() -> Vec<ParamType>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator, ;
fn new_from_tokens(tokens: &[Token]) -> Self;
}Expand description
This trait is similar to Detokenize, but it is used inside the abigen
generated code in order to get the parameter types (ParamType) and
instantiate a new struct/enum from tokens. This is used in the generated
code in custom_types_gen.rs, with the exception of the Sway-native types
Address, ContractId, and AssetId, that are implemented right here,
without code generation.
Required Methods
fn param_types() -> Vec<ParamType>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,