Enum taxonomy::TaxonomyError[][src]

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

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

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

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.

Converts the given value to a String. Read more

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.