Enum static_alloc::bump::Failure[][src]

pub enum Failure {
    Exhausted,
    Mismatch {
        observed: Level,
    },
}

Reason for a failed allocation at an exact Level.

Variants

Exhausted

No space left for that allocation.

Mismatch

The allocation would not have used the expected base location.

Reports the location that was observed. When only levels from the same slab are used (which should normally be the case) then the observed level is monotonically increasing.

Fields of Mismatch

observed: Level

The observed level that was different from the requested one.

Trait Implementations

impl Clone for Failure[src]

impl Copy for Failure[src]

impl Debug for Failure[src]

impl Eq for Failure[src]

impl Hash for Failure[src]

impl PartialEq<Failure> for Failure[src]

impl StructuralEq for Failure[src]

impl StructuralPartialEq for Failure[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.