#[repr(u8)]pub enum TreeError {
AllocationError = 0,
TreeTooBig = 1,
}
Expand description
Represents an error that can occur when working with a tree.
Variants§
AllocationError = 0
The allocator failed to allocate memory.
TreeTooBig = 1
The tree is too big, it exceeds MAX_LEVEL
.
Trait Implementations§
Source§impl From<AllocationError> for TreeError
impl From<AllocationError> for TreeError
Source§fn from(_: AllocationError) -> Self
fn from(_: AllocationError) -> Self
Converts to this type from the input type.
impl Copy for TreeError
impl Eq for TreeError
impl StructuralPartialEq for TreeError
Auto Trait Implementations§
impl Freeze for TreeError
impl RefUnwindSafe for TreeError
impl Send for TreeError
impl Sync for TreeError
impl Unpin for TreeError
impl UnwindSafe for TreeError
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