Enum convo::error::TreeError[][src]

pub enum TreeError {
    RootNotSet(),
    CurrentNotSet(),
    NodeDNE(String),
    Validation(String),
}
Expand description

A TreeError is a category of validation errors returned when a tree is not considered legal. See also: validation rules.

Variants

RootNotSet()

An error caused when a crate::Tree is missing a root crate::Node. See also: crate::Tree#root.

CurrentNotSet()

An error caused when a crate::Tree is missing a current crate::Node. See also: crate::Tree#current.

NodeDNE(String)

An error caused when a crate::Tree is missing a necessary crate::Node.

Validation(String)

An error caused when validating a family of rules a crate::Tree must obey.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.