fuel_tx::field

Trait Script

Source
pub trait Script {
    // Required methods
    fn script(&self) -> &Vec<u8> ;
    fn script_mut(&mut self) -> &mut Vec<u8> ;
    fn script_offset_static() -> usize;

    // Provided method
    fn script_offset(&self) -> usize { ... }
}

Required Methods§

Source

fn script(&self) -> &Vec<u8>

Source

fn script_mut(&mut self) -> &mut Vec<u8>

Source

fn script_offset_static() -> usize

Provided Methods§

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.

Implementors§