Enum bdf::Error [] [src]

pub enum Error {
    IO(Error),
    Parse(ParseIntError),
    MissingVersion,
    MissingBoundingBox,
    MissingValue(String),
    InvalidCodepoint,
    End,
    MalformedFont,
    MalformedProperties,
    MalformedChar,
}

Errors for Reader and Writer.

Variants

IO(Error)

A downstream IO error.

Parse(ParseIntError)

A downstream parsing error.

MissingVersion

STARTFONT is missing the format version.

MissingBoundingBox

There was no bounding box for a character.

MissingValue(String)

An entry is missing a value.

InvalidCodepoint

An unknown error.

End

Eof has been reached.

MalformedFont

The font declaration is malformed.

MalformedProperties

The property declarations are malformed.

MalformedChar

The character declaration is malformed.

Trait Implementations

impl Debug for Error
[src]

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

Formats the value using the given formatter.

impl From<Error> for Error
[src]

fn from(value: Error) -> Self

Performs the conversion.

impl From<ParseIntError> for Error
[src]

fn from(value: ParseIntError) -> Self

Performs the conversion.

impl Display for Error
[src]

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

Formats the value using the given formatter.

impl Error for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

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

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