pub struct MissingError { /* private fields */ }
Implementations§
Source§impl MissingError
impl MissingError
pub fn empty() -> Self
pub fn undefined(symbol: &str) -> Self
pub fn with_span(self, span: SourceSpan) -> Self
pub fn with_range(self, range: Range<u32>) -> Self
pub fn with_file(self, file: SourceID) -> Self
pub fn as_error(self, kind: ReportKind) -> NyarError
pub fn as_report(&self, kind: ReportKind) -> Diagnostic
Trait Implementations§
Source§impl Clone for MissingError
impl Clone for MissingError
Source§fn clone(&self) -> MissingError
fn clone(&self) -> MissingError
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 MissingError
impl Debug for MissingError
Source§impl Display for MissingError
impl Display for MissingError
Source§impl Error for MissingError
impl Error for MissingError
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 From<MissingError> for NyarError
impl From<MissingError> for NyarError
Source§fn from(value: MissingError) -> Self
fn from(value: MissingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MissingError
impl PartialEq for MissingError
impl Eq for MissingError
impl StructuralPartialEq for MissingError
Auto Trait Implementations§
impl Freeze for MissingError
impl RefUnwindSafe for MissingError
impl Send for MissingError
impl Sync for MissingError
impl Unpin for MissingError
impl UnwindSafe for MissingError
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