[][src]Enum fastobo::error::CardinalityError

pub enum CardinalityError {
    MissingClause {
        name: String,
    },
    DuplicateClauses {
        name: String,
    },
    SingleClause {
        name: String,
    },
}

An error for cardinality violation.

This error is highly dependent on the function that returns it: the name field can provide more information about the specific clause that errored to the end-user.

Variants

MissingClause

Fields of MissingClause

name: String
DuplicateClauses

Fields of DuplicateClauses

name: String
SingleClause

Fields of SingleClause

name: String

Trait Implementations

impl Eq for CardinalityError[src]

impl PartialEq<CardinalityError> for CardinalityError[src]

impl Display for CardinalityError[src]

impl Debug for CardinalityError[src]

impl Error for CardinalityError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

impl<T> From<T> for T[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.

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

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

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