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§
fn proof_set(&self) -> &Vec<Bytes32>
fn proof_set_mut(&mut self) -> &mut Vec<Bytes32>
fn proof_set_offset_static() -> usize
Sourcefn proof_set_offset_at(&self, idx: usize) -> Option<usize>
fn proof_set_offset_at(&self, idx: usize) -> Option<usize>
Returns the offset to the Bytes32
at idx
index, if any.
Provided Methods§
fn proof_set_offset(&self) -> usize
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.