pub enum ReplacementError<T> {
NoPertinentRoot,
DuplicateLeaf(T),
LeafNotFound(T),
}
Expand description
Replacement failure
Variants§
NoPertinentRoot
The pertinent root isn’t marked in the tree.
DuplicateLeaf(T)
Leaf is already present in the tree.
LeafNotFound(T)
Leaf not found in the tree.
Trait Implementations§
Source§impl<T: Clone> Clone for ReplacementError<T>
impl<T: Clone> Clone for ReplacementError<T>
Source§fn clone(&self) -> ReplacementError<T>
fn clone(&self) -> ReplacementError<T>
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<T: Debug> Debug for ReplacementError<T>
impl<T: Debug> Debug for ReplacementError<T>
Source§impl<T: PartialEq> PartialEq for ReplacementError<T>
impl<T: PartialEq> PartialEq for ReplacementError<T>
impl<T: Eq> Eq for ReplacementError<T>
impl<T> StructuralPartialEq for ReplacementError<T>
Auto Trait Implementations§
impl<T> Freeze for ReplacementError<T>where
T: Freeze,
impl<T> RefUnwindSafe for ReplacementError<T>where
T: RefUnwindSafe,
impl<T> Send for ReplacementError<T>where
T: Send,
impl<T> Sync for ReplacementError<T>where
T: Sync,
impl<T> Unpin for ReplacementError<T>where
T: Unpin,
impl<T> UnwindSafe for ReplacementError<T>where
T: UnwindSafe,
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