pub struct ErrorData {
pub target: ErrorTarget,
pub category: ErrorCategory,
pub message: String,
}Expand description
What an Error says. Boxed there so that a Result costs a pointer: the interpreter’s hottest calls
(read_token, read_x_token, an argument’s read) return Results, and at this struct’s size each went through
stack memory instead of registers (clippy::result_large_err).
Fields§
§target: ErrorTarget§category: ErrorCategory§message: StringTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ErrorData
impl !UnwindSafe for ErrorData
impl Freeze for ErrorData
impl Send for ErrorData
impl Sync for ErrorData
impl Unpin for ErrorData
impl UnsafeUnpin for ErrorData
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