pub enum AllocationSizeError {
BadAlignment,
TooLarge,
}Expand description
Represents an error for an allocation’s size.
Variants§
Trait Implementations§
Source§impl Clone for AllocationSizeError
impl Clone for AllocationSizeError
Source§fn clone(&self) -> AllocationSizeError
fn clone(&self) -> AllocationSizeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllocationSizeError
impl Debug for AllocationSizeError
Source§impl PartialEq for AllocationSizeError
impl PartialEq for AllocationSizeError
impl Copy for AllocationSizeError
impl Eq for AllocationSizeError
impl StructuralPartialEq for AllocationSizeError
Auto Trait Implementations§
impl Freeze for AllocationSizeError
impl RefUnwindSafe for AllocationSizeError
impl Send for AllocationSizeError
impl Sync for AllocationSizeError
impl Unpin for AllocationSizeError
impl UnwindSafe for AllocationSizeError
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