Trait fuel_tx::input::AsField

source ·
pub trait AsField<Type>: AsFieldFmt {
    // Required methods
    fn as_field(&self) -> Option<&Type>;
    fn as_mut_field(&mut self) -> Option<&mut Type>;
}

Required Methods§

Implementations on Foreign Types§

source§

impl AsField<u8> for u8

source§

fn as_field(&self) -> Option<&u8>

source§

fn as_mut_field(&mut self) -> Option<&mut u8>

source§

impl AsField<u16> for u16

source§

fn as_field(&self) -> Option<&u16>

source§

fn as_mut_field(&mut self) -> Option<&mut u16>

source§

impl AsField<u64> for u64

source§

fn as_field(&self) -> Option<&u64>

source§

fn as_mut_field(&mut self) -> Option<&mut u64>

source§

impl AsField<Vec<u8>> for Vec<u8>

source§

fn as_field(&self) -> Option<&Vec<u8>>

source§

fn as_mut_field(&mut self) -> Option<&mut Vec<u8>>

Implementors§

source§

impl<Type> AsField<Type> for Empty<Type>