Enum bounded_vec::BoundedVecOutOfBounds[][src]

pub enum BoundedVecOutOfBounds {
    LowerBoundError {
        lower_bound: usize,
        got: usize,
    },
    UpperBoundError {
        upper_bound: usize,
        got: usize,
    },
}
Expand description

BoundedVec errors

Variants

LowerBoundError

Items quantity is less than L (lower bound)

Show fields

Fields of LowerBoundError

lower_bound: usize

L (lower bound)

got: usize

provided value

UpperBoundError

Items quantity is more than U (upper bound)

Show fields

Fields of UpperBoundError

upper_bound: usize

U (upper bound)

got: usize

provided value

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.