Enum genpdf::error::ErrorKind[][src]

#[non_exhaustive]
pub enum ErrorKind {
    Internal,
    InvalidData,
    InvalidFont,
    PageSizeExceeded,
    UnsupportedEncoding,
    IoError(Error),
    PdfError(PdfError),
    PdfIndexError(IndexError),
    RusttypeError(Error),
    ImageError(ImageError),
}
Expand description

The kind of an Error.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Internal

An internal error.

InvalidData

An error caused by invalid data.

InvalidFont

An error caused by an invalid font.

PageSizeExceeded

An element exceeds the page size and could not be printed.

UnsupportedEncoding

A string with unsupported characters was used with a built-in font.

IoError(Error)

An IO error.

PdfError(PdfError)

An error caused by invalid data in printpdf.

PdfIndexError(IndexError)

An error caused by an invalid index in printpdf.

RusttypeError(Error)

An error caused by rusttype.

ImageError(ImageError)

An error caused by image.

Only available if the images feature is enabled.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.