#[repr(u8)]pub enum BTreeError {
AllocationError = 0,
TreeSizeOutOfRange = 1,
}Expand description
Represents possible errors when working with BTree.
Variants§
AllocationError = 0
The underlying allocator returned an error.
TreeSizeOutOfRange = 1
The tree size is out of range, i.e. exceeds
[Length::MAX_LENGTH][osom_lib_primitives::length::Length::MAX_LENGTH].
Trait Implementations§
Source§impl Clone for BTreeError
impl Clone for BTreeError
Source§fn clone(&self) -> BTreeError
fn clone(&self) -> BTreeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BTreeError
Source§impl Debug for BTreeError
impl Debug for BTreeError
Source§impl Display for BTreeError
impl Display for BTreeError
impl Eq for BTreeError
Source§impl From<Infallible> for BTreeError
impl From<Infallible> for BTreeError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl Hash for BTreeError
impl Hash for BTreeError
Source§impl PartialEq for BTreeError
impl PartialEq for BTreeError
Source§fn eq(&self, other: &BTreeError) -> bool
fn eq(&self, other: &BTreeError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ReprC for BTreeError
impl ReprC for BTreeError
impl StructuralPartialEq for BTreeError
Auto Trait Implementations§
impl Freeze for BTreeError
impl RefUnwindSafe for BTreeError
impl Send for BTreeError
impl Sync for BTreeError
impl Unpin for BTreeError
impl UnsafeUnpin for BTreeError
impl UnwindSafe for BTreeError
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