Struct sdl_client::FontLoadingError
source · [−]pub struct FontLoadingError(pub(crate) &'static str);
Expand description
Wrapper for fontdue errors which implements Error and Display.
Tuple Fields
0: &'static str
Trait Implementations
sourceimpl Debug for FontLoadingError
impl Debug for FontLoadingError
sourceimpl Display for FontLoadingError
impl Display for FontLoadingError
sourceimpl Error for FontLoadingError
impl Error for FontLoadingError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<&'static str> for FontLoadingError
impl From<&'static str> for FontLoadingError
sourcefn from(s: &'static str) -> FontLoadingError
fn from(s: &'static str) -> FontLoadingError
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for FontLoadingError
impl Send for FontLoadingError
impl Sync for FontLoadingError
impl Unpin for FontLoadingError
impl UnwindSafe for FontLoadingError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more