Enum pix_engine::core::window::Error [−][src]
#[non_exhaustive]
pub enum Error {
InvalidTitle(&'static str, NulError),
InvalidWindow(WindowId),
InvalidPosition(Position, Position),
Overflow(Cow<'static, str>, u32),
InvalidText(&'static str, NulError),
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.
Invalid window title.
InvalidWindow(WindowId)Invalid WindowId.
Tuple Fields of InvalidWindow
0: WindowIdInvalid (x, y) window Position.
An overflow occurred.
Invalid text.
Any other unknown error as a string.
Trait Implementations
Convert WindowError to Error.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more