ReadOneFromError

Type Alias ReadOneFromError 

Source
pub type ReadOneFromError<T> = ReadError<<T as ReadOneFrom>::ParseError>;
Expand description

The error type for ReadOneFrom.

Aliased Type§

pub enum ReadOneFromError<T> {
    IOError(Error),
    EOF,
    EOL,
    UnexpectedChar(String, &'static str),
    FromStrError(<T as ReadOneFrom>::ParseError, String, &'static str),
}

Variants§

§

IOError(Error)

Error during reading from input.

§

EOF

Unexpected end of file.

§

EOL

Unexpected end of line.

§

UnexpectedChar(String, &'static str)

Error during matching a pattern.

§

FromStrError(<T as ReadOneFrom>::ParseError, String, &'static str)

Error during converting a string to a value, usually caused by calling std::str::FromStr::from_str.