Enum piet::Error [−][src]
#[non_exhaustive]
pub enum Error {
InvalidInput,
NotSupported,
Unimplemented,
MissingFeature(&'static str),
StackUnbalance,
BackendError(Box<dyn Error>),
MissingFont,
FontLoadingFailed,
}
Expand description
An error that can occur while rendering 2D graphics.
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.
A function was passed an invalid input.
Something is impossible on the current platform.
Something is possible, but not yet implemented.
Piet was compiled without a required feature.
Tuple Fields of MissingFeature
0: &'static str
A stack pop failed.
The backend failed unexpectedly.
A font could not be found.
Font data could not be loaded.