pub struct Basic {
pub msg: String,
pub span: Span,
}👎Deprecated: This is a nonspecific error constructor that should eventually become a prebuilt message.
Expand description
An explicit error message with its span. This error construct is meant to be phased out in favor of a prebuilt error message.
Fields§
§msg: String👎Deprecated: This is a nonspecific error constructor that should eventually become a prebuilt message.
Error kind.
span: Span👎Deprecated: This is a nonspecific error constructor that should eventually become a prebuilt message.
Error location.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Basic
impl RefUnwindSafe for Basic
impl !Send for Basic
impl !Sync for Basic
impl Unpin for Basic
impl UnwindSafe for Basic
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