[][src]Enum taxonomy::TaxonomyError

pub enum TaxonomyError {
    NoSuchKey {
        key: String,
    },
    NoSuchName {
        name: String,
    },
    UnrecognizedRank {
        rank: String,
    },
    ImportError {
        line: usize,
        msg: String,
    },
    MalformedTree {
        tax_id: String,
    },
    CreationFailed {
        field: String,
    },
}

A taxonomically-specific error

Variants

NoSuchKey

The given key could not be found in the taxonomy.

Fields of NoSuchKey

key: String
NoSuchName

The given name could not be found in the taxonomy.

Fields of NoSuchName

name: String
UnrecognizedRank

A string could not be parsed into a TaxRank.

Fields of UnrecognizedRank

rank: String
ImportError

A string could not be parsed into a TaxRank.

Fields of ImportError

line: usizemsg: String
MalformedTree

The taxonomy has an unrooted node or some other issue that breaks the assumption its a tree

Fields of MalformedTree

tax_id: String
CreationFailed

Fields of CreationFailed

field: String

Trait Implementations

impl Debug for TaxonomyError[src]

impl Display for TaxonomyError[src]

impl From<Error> for TaxonomyError[src]

impl From<Error> for TaxonomyError[src]

impl From<Error> for TaxonomyError[src]

Auto Trait Implementations

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> ToString for T where
    T: Display + ?Sized
[src]

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.