pub struct OutOfBounds {
    /// The length of the `StorageVec`.
    pub length: u64,
    /// The index that was out-of-bounds.
    /// `index` is always greater than or equal to `length`.
    pub index: u64,
}
Expand description

Describes an out-of-bounds StorageVec access.

Fields

length: u64

The length of the StorageVec.

index: u64

The index that was out-of-bounds.
index is always greater than or equal to length.

Trait Implementations

pub fn abi_encode(self, buffer: Buffer) -> Buffer

pub fn is_encode_trivial() -> bool

pub fn abi_decode(refmut buffer: BufferReader) -> Self

pub fn is_decode_trivial() -> bool

pub fn fmt(
self,
refmut _f: Formatter,
)