[−][src]Enum k2_tree::error::K2TreeError
Errors produced as a result of interactions with the K2Tree object.
Variants
Produced when a user attempts to create a K2Tree with a k values below 2.
Fields of SmallStemKValue
stem_k: u8
Produced when a user attempts to create a K2Tree with a k values below 2.
Fields of SmallLeafKValue
leaf_k: u8
Produced when a problem occurs attempting to traverse a K2Tree.
This mostly appears because the internal state of K2Tree is corrupted, or the user found a way to search for an invalid coordinate within the bounds of the matrix the K2Tree represents.
Produced when a user attempts to access a coordinate outside the bounds of the matrix a K2Tree represents.
Produced when a stem could not be inserted into a K2Tree's stems.
Fields of StemInsertionError
Produced when a stem coud not be removed from a K2Tree's stems.
Fields of StemRemovalError
Produced when a leaf could not be inserted into a K2Tree's leaves.
Fields of LeafInsertionError
Produced when a leaf could not be removed from a K2Tree's leaves.
Fields of LeafRemovalError
Produced when a problem occurs attempting to shrink the matrix a K2Tree represents.
Fields of CouldNotShrink
reason: String
Indicates that the source error resulted in the corruption of a K2Tree.
Fields of CorruptedK2Tree
source: Box<K2TreeError>
Indicates that the source error was produced during a read operation on a K2Tree.
Almost certainly guarantees that the error did not cause any corruption.
Fields of Read
source: Box<K2TreeError>
Indicates that the source error was produced during a write operation on a K2Tree.
Fields of Write
source: Box<K2TreeError>
Propogation of a BitMatrixError.
Fields of BitMatrixError
source: Box<BitMatrixError>
Propogation of a SubRangesError.
Fields of SubRangesError
source: Box<SubRangesError>
Trait Implementations
impl Clone for K2TreeError
[src]
pub fn clone(&self) -> K2TreeError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for K2TreeError
[src]
impl Display for K2TreeError
[src]
impl Error for K2TreeError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<BitMatrixError> for K2TreeError
[src]
pub fn from(error: BitMatrixError) -> Self
[src]
impl From<SubRangesError> for K2TreeError
[src]
pub fn from(error: SubRangesError) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for K2TreeError
[src]
impl Send for K2TreeError
[src]
impl Sync for K2TreeError
[src]
impl Unpin for K2TreeError
[src]
impl UnwindSafe for K2TreeError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,