Enum pix_engine::renderer::Error [−][src]
#[non_exhaustive]
pub enum Error {
InitError,
IoError(Error),
WindowError(WindowError),
InvalidText(&'static str, NulError),
InvalidFont(PathBuf),
InvalidTexture(TextureId),
Conversion(Cow<'static, str>),
Overflow(Cow<'static, str>, u32),
Other(Cow<'static, str>),
}Expand description
The error type for Renderer operations.
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.
Renderer initialization errors.
IoError(Error)Renderer I/O errors.
Tuple Fields of IoError
0: ErrorWindowError(WindowError)Window errors.
Tuple Fields of WindowError
0: WindowErrorInvalid text.
InvalidFont(PathBuf)Invalid font.
Tuple Fields of InvalidFont
0: PathBufInvalidTexture(TextureId)Invalid Texture.
Tuple Fields of InvalidTexture
0: TextureIdAn error from invalid type conversions.
An overflow occurred.
Any other unknown error as a string.
Trait Implementations
Convert WindowError to Error.
Convert IntegerOrSdlError to Error.
Convert TargetRenderError to Error.
Convert TextureValueError to Error.
Performs the conversion.
Convert UpdateTextureError to Error.
Convert WindowBuildError to Error.