[−][src]Struct outils::tree::generic::error::TreeError
Error type that covers the error situations that commonly occur when manipulation tree or forest operations.
TreeError
keeps a TreeErrorType
describing the error as well as a String
that can be
used to store a description of the context in which the error has occured.
Implementations
impl<Ix> TreeError<Ix>
[src]
pub fn invalid_node_index(context: &str, node: NodeIndex<Ix>) -> Self
[src]
Construct a new TreeError
of type TreeErrorType::InvalidNodeIndex
referring to node
pub fn expected_root_node(context: &str, node: NodeIndex<Ix>) -> Self
[src]
Construct a new TreeError
of type TreeErrorType::ExpectedRootNode
referring to node
pub fn expected_non_ancestor_node(
context: &str,
new_ancestor: NodeIndex<Ix>,
new_descendant: NodeIndex<Ix>
) -> Self
[src]
context: &str,
new_ancestor: NodeIndex<Ix>,
new_descendant: NodeIndex<Ix>
) -> Self
Construct a new TreeError
of type TreeErrorType::ExpectedNonAncestorNode
referring to
new_ancestor
and new_descendant
.
pub fn other_error(context: &str, msg: &str) -> Self
[src]
Construct a new TreeError
of type TreeErrorType::OtherType
with a custom message
msg
describing the particular error situation.
Trait Implementations
impl<Ix: Clone> Clone for TreeError<Ix>
[src]
impl<Ix: Debug> Debug for TreeError<Ix>
[src]
impl Display for TreeError
[src]
impl Error for TreeError
[src]
Auto Trait Implementations
impl<Ix> RefUnwindSafe for TreeError<Ix> where
Ix: RefUnwindSafe,
Ix: RefUnwindSafe,
impl<Ix> Send for TreeError<Ix> where
Ix: Send,
Ix: Send,
impl<Ix> Sync for TreeError<Ix> where
Ix: Sync,
Ix: Sync,
impl<Ix> Unpin for TreeError<Ix> where
Ix: Unpin,
Ix: Unpin,
impl<Ix> UnwindSafe for TreeError<Ix> where
Ix: UnwindSafe,
Ix: UnwindSafe,
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,