[][src]Enum outils::tree::generic::error::TreeErrorType

pub enum TreeErrorType<Ix = DefaultIndexType> {
    InvalidNodeIndex {
        node: NodeIndex<Ix>,
    },
    ExpectedRootNode {
        node: NodeIndex<Ix>,
    },
    ExpectedNonAncestorNode {
        new_ancestor: NodeIndex<Ix>,
        new_descendant: NodeIndex<Ix>,
    },
    OtherError {
        msg: String,
    },
}

Enum to refer to error situations that commonly occur in forest operations.

Variants

InvalidNodeIndex

A node index was passed to an operation but did not refer to a valid node.

Fields of InvalidNodeIndex

node: NodeIndex<Ix>

The node index that was passed to the operation.

ExpectedRootNode

An operation is only defined for root nodes, but an invalid node index or a node index referring to a non-tree node was passed to the operation.

Fields of ExpectedRootNode

node: NodeIndex<Ix>

The node index that was passed to operation.

ExpectedNonAncestorNode

An operation is only defined for forest nodes that are not part of the same forest tree, but the nodes passed to this operation are already in a ancestor/descendant relation.

Fields of ExpectedNonAncestorNode

new_ancestor: NodeIndex<Ix>

The node that was passed to the operation as the new ancestor

new_descendant: NodeIndex<Ix>

The node that was passed to the operation as the new descendant

OtherError

Summary error type, which can be used in other error situations which do not have a direct relation to defined operations of a forest.

Fields of OtherError

msg: String

Description of the particular error situation.

Trait Implementations

impl<Ix: Clone> Clone for TreeErrorType<Ix>[src]

impl<Ix: Debug> Debug for TreeErrorType<Ix>[src]

Auto Trait Implementations

impl<Ix> RefUnwindSafe for TreeErrorType<Ix> where
    Ix: RefUnwindSafe

impl<Ix> Send for TreeErrorType<Ix> where
    Ix: Send

impl<Ix> Sync for TreeErrorType<Ix> where
    Ix: Sync

impl<Ix> Unpin for TreeErrorType<Ix> where
    Ix: Unpin

impl<Ix> UnwindSafe for TreeErrorType<Ix> where
    Ix: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,