Enum static_alloc::bump::Failure
source · pub enum Failure {
Exhausted,
Mismatch {
observed: Level,
},
}
Expand description
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.
Trait Implementations§
source§impl PartialEq for Failure
impl PartialEq for Failure
impl Copy for Failure
impl Eq for Failure
impl StructuralPartialEq for Failure
Auto Trait Implementations§
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl UnwindSafe for Failure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more