ReadFromError

Type Alias ReadFromError 

Source
pub type ReadFromError<T> = ReadError<<T as ReadFrom>::ParseError>;
Expand description

The error type for ReadFrom.

Aliased Type§

pub enum ReadFromError<T> {
    IOError(Error),
    EOF,
    EOL,
    UnexpectedChar(String, &'static str),
    FromStrError(<T as ReadFrom>::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 ReadFrom>::ParseError, String, &'static str)

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