pub struct BackendError {
pub kind: ErrorKind,
pub message: String,
pub diagnostics: Vec<Diagnostic>,
}Fields§
§kind: ErrorKind§message: String§diagnostics: Vec<Diagnostic>Implementations§
Source§impl BackendError
impl BackendError
pub fn parse(message: impl Into<String>) -> Self
pub fn parse_at( code: impl Into<String>, message: impl Into<String>, span: impl Into<Option<SourceSpan>>, ) -> Self
pub fn semantic(message: impl Into<String>) -> Self
pub fn semantic_at( code: impl Into<String>, message: impl Into<String>, span: impl Into<Option<SourceSpan>>, ) -> Self
pub fn unrepresentable(message: impl Into<String>) -> Self
pub fn unrepresentable_at( code: impl Into<String>, message: impl Into<String>, span: impl Into<Option<SourceSpan>>, ) -> Self
pub fn with_metadata( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for BackendError
impl Clone for BackendError
Source§fn clone(&self) -> BackendError
fn clone(&self) -> BackendError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackendError
impl Debug for BackendError
Source§impl Display for BackendError
impl Display for BackendError
Source§impl Error for BackendError
impl Error for BackendError
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()
Source§impl PartialEq for BackendError
impl PartialEq for BackendError
impl Eq for BackendError
impl StructuralPartialEq for BackendError
Auto Trait Implementations§
impl Freeze for BackendError
impl RefUnwindSafe for BackendError
impl Send for BackendError
impl Sync for BackendError
impl Unpin for BackendError
impl UnsafeUnpin for BackendError
impl UnwindSafe for BackendError
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