Trait fuel_tx::field::Inputs

source ·
pub trait Inputs {
    // Required methods
    fn inputs(&self) -> &Vec<Input>;
    fn inputs_mut(&mut self) -> &mut Vec<Input>;
    fn inputs_offset(&self) -> usize;
    fn inputs_offset_at(&self, idx: usize) -> Option<usize>;
    fn inputs_predicate_offset_at(&self, idx: usize) -> Option<(usize, usize)>;
}

Required Methods§

source

fn inputs(&self) -> &Vec<Input>

source

fn inputs_mut(&mut self) -> &mut Vec<Input>

source

fn inputs_offset(&self) -> usize

source

fn inputs_offset_at(&self, idx: usize) -> Option<usize>

Returns the offset to the Input at idx index, if any.

source

fn inputs_predicate_offset_at(&self, idx: usize) -> Option<(usize, usize)>

Returns predicate’s offset and length of the Input at idx, if any.

Implementors§