pub enum NodeIdError {
InvalidNodeIdForTree,
NodeIdNoLongerValid,
}
Expand description
Enum for all of the possible NodeId
errors that could occur.
Variants§
InvalidNodeIdForTree
Occurs when a NodeId
is used on a Tree
from which it did not originate.
NodeIdNoLongerValid
Occurs when a NodeId
is used on a Tree
after the corresponding Node
has been removed.
Trait Implementations§
Source§impl Debug for NodeIdError
impl Debug for NodeIdError
Source§impl Display for NodeIdError
impl Display for NodeIdError
Source§impl Error for NodeIdError
impl Error for NodeIdError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§impl PartialEq for NodeIdError
impl PartialEq for NodeIdError
impl Eq for NodeIdError
impl StructuralPartialEq for NodeIdError
Auto Trait Implementations§
impl Freeze for NodeIdError
impl RefUnwindSafe for NodeIdError
impl Send for NodeIdError
impl Sync for NodeIdError
impl Unpin for NodeIdError
impl UnwindSafe for NodeIdError
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