pub enum InitError {
InitializationError(Error),
AlreadyInitializedError,
}
Expand description
An error for when sdl2_ttf
is attempted initialized twice
Necessary for context management, unless we find a way to have a singleton
Variants
InitializationError(Error)
AlreadyInitializedError
Trait Implementations
sourceimpl Error for InitError
impl Error for InitError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
Auto Trait Implementations
impl !RefUnwindSafe for InitError
impl Send for InitError
impl Sync for InitError
impl Unpin for InitError
impl !UnwindSafe for InitError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more