Enum takuzu::SourceError [] [src]

pub enum SourceError {
    IO(IOError),
    Parsing(GridParseError),
}

An error returned by the source method when either reading or parsing failed.

Variants

IO(IOError)

Reading from the source failed.

Parsing(GridParseError)

Parsing failed.

Trait Implementations

impl Debug for SourceError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for SourceError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for SourceError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

The lower-level cause of this error, if any. Read more

impl From<IOError> for SourceError
[src]

fn from(err: IOError) -> Self

Performs the conversion.

impl From<GridParseError> for SourceError
[src]

fn from(err: GridParseError) -> Self

Performs the conversion.