Enum peresil::Status[][src]

pub enum Status<T, E> {
    Success(T),
    Failure(E),
}

An analog to Result, specialized for parsing.

Variants

Trait Implementations

impl<T: Debug, E: Debug> Debug for Status<T, E>
[src]

Formats the value using the given formatter. Read more

impl<T: Copy, E: Copy> Copy for Status<T, E>
[src]

impl<T: Clone, E: Clone> Clone for Status<T, E>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq, E: PartialEq> PartialEq for Status<T, E>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<T, E> Send for Status<T, E> where
    E: Send,
    T: Send

impl<T, E> Sync for Status<T, E> where
    E: Sync,
    T: Sync