pub struct UiError {
pub kind: UiErrorKind,
pub file: &'static str,
pub line: u32,
}Expand description
Error for UI trait operations with source location.
Fields§
§kind: UiErrorKindThe specific error kind.
file: &'static strSource file where error was created.
line: u32Line number where error was created.
Implementations§
Trait Implementations§
Source§impl Error for UiError
impl Error for UiError
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()
Auto Trait Implementations§
impl Freeze for UiError
impl RefUnwindSafe for UiError
impl Send for UiError
impl Sync for UiError
impl Unpin for UiError
impl UnsafeUnpin for UiError
impl UnwindSafe for UiError
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