[][src]Enum seq_io::fasta::ErrorKind

pub enum ErrorKind {
    Io(Error),
    InvalidStart {
        pos: ErrorPosition,
        found: u8,
    },
    UnexpectedEnd {
        pos: ErrorPosition,
    },
    BufferLimit,
    // some variants omitted
}

Variants

Io(Error)

std::io::Error

InvalidStart

Invalid start byte encountered (expected >)

Fields of InvalidStart

pos: ErrorPosition

Position, where the error occurred. ErrorPosition::position() returns the record start (same as ErrorPosition::record_position()), ErrorPosition::error_offset() will return None.

found: u8

Byte found instead.

UnexpectedEnd

Truncated record found at the end of the input. This occurs if there is no newline character \n after a sequence header.

Fields of UnexpectedEnd

pos: ErrorPosition

Position, where the error occurred. ErrorPosition::position() returns a Position referring to the last byte of the file. ErrorPosition::record_id() only returns an ID if the unexpected end did not occur in within the header line. In this case, the ID may be truncated.

BufferLimit

Size limit of buffer was reached, which happens if policy::BufPolicy::grow_to() returned None. This does not happen with the default DoubleUntil policy.

Implementations

impl ErrorKind[src]

pub fn position(&self) -> Option<&ErrorPosition>[src]

Returns the position for this error, if one exists.

Trait Implementations

impl Debug for ErrorKind[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> Pointable for T

type Init = T

The type for initializers.

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.