Trait ProofSet

Source
pub trait ProofSet {
    // Required methods
    fn proof_set(&self) -> &Vec<Bytes32>;
    fn proof_set_mut(&mut self) -> &mut Vec<Bytes32>;
    fn proof_set_offset_static() -> usize;
    fn proof_set_offset_at(&self, idx: usize) -> Option<usize>;

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

Required Methods§

Source

fn proof_set(&self) -> &Vec<Bytes32>

Source

fn proof_set_mut(&mut self) -> &mut Vec<Bytes32>

Source

fn proof_set_offset_static() -> usize

Source

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

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

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§