Enum fuels_types::param_types::ParamType
source · [−]pub enum ParamType {
}
Variants
U8
U16
U32
U64
Bool
Byte
B256
Unit
Array(Box<ParamType>, usize)
String(usize)
Struct(Vec<ParamType>)
Enum(EnumVariants)
Tuple(Vec<ParamType>)
Generic(String)
Implementations
sourceimpl ParamType
impl ParamType
pub fn get_return_location(&self) -> ReturnLocation
sourcepub fn compute_encoding_width(&self) -> usize
pub fn compute_encoding_width(&self) -> usize
Calculates the number of WORD
s the VM expects this parameter to be encoded in.
sourceimpl ParamType
impl ParamType
pub fn from_type_declaration(
prop: &TypeDeclaration,
types: &HashMap<usize, TypeDeclaration>
) -> Result<Self, Error>
pub fn parse_tuple_param(
prop: &TypeDeclaration,
types: &HashMap<usize, TypeDeclaration>
) -> Result<Self, Error>
pub fn parse_string_param(prop: &TypeDeclaration) -> Result<Self, Error>
pub fn parse_array_param(
prop: &TypeDeclaration,
types: &HashMap<usize, TypeDeclaration>
) -> Result<ParamType, Error>
pub fn parse_custom_type_param(
prop: &TypeDeclaration,
types: &HashMap<usize, TypeDeclaration>
) -> Result<ParamType, Error>
Trait Implementations
impl Eq for ParamType
impl StructuralEq for ParamType
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more