pub enum SfError {
NulInStr,
CallFailed,
}
Expand description
An SFML operation has failed
Variants§
NulInStr
An string argument passed had interior nul bytes
CallFailed
Call to SFML function returned an error
Trait Implementations§
Source§impl Error for SfError
impl Error for SfError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Copy for SfError
Auto Trait Implementations§
impl Freeze for SfError
impl RefUnwindSafe for SfError
impl Send for SfError
impl Sync for SfError
impl Unpin for SfError
impl UnwindSafe for SfError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more