pub struct DeclError {
pub message: String,
pub diagnostics: Vec<Diagnostic>,
}Expand description
An operation failed; diagnostics carries the report (empty for a usage
error such as an unknown input or root).
Fields§
§message: String§diagnostics: Vec<Diagnostic>Trait Implementations§
Source§impl Error for DeclError
impl Error for DeclError
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 DeclError
impl RefUnwindSafe for DeclError
impl Send for DeclError
impl Sync for DeclError
impl Unpin for DeclError
impl UnsafeUnpin for DeclError
impl UnwindSafe for DeclError
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