Enum nyar_error::NyarErrorKind
source · pub enum NyarErrorKind {
Duplicate(DuplicateError),
Runtime(RuntimeError),
Parsing(SyntaxError),
Custom(String),
}Variants§
Implementations§
source§impl NyarErrorKind
impl NyarErrorKind
pub fn as_error(self, level: ReportKind) -> NyarError
Trait Implementations§
source§impl Clone for NyarErrorKind
impl Clone for NyarErrorKind
source§fn clone(&self) -> NyarErrorKind
fn clone(&self) -> NyarErrorKind
Returns a copy 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 NyarErrorKind
impl Debug for NyarErrorKind
source§impl Display for NyarErrorKind
impl Display for NyarErrorKind
source§impl Error for NyarErrorKind
impl Error for NyarErrorKind
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 RefUnwindSafe for NyarErrorKind
impl Send for NyarErrorKind
impl Sync for NyarErrorKind
impl Unpin for NyarErrorKind
impl UnwindSafe for NyarErrorKind
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