Enum leo_errors::warnings::LeoWarning
source · pub enum LeoWarning {
ParserWarning(ParserWarning),
}Expand description
The LeoWarning type that contains all sub error types. This allows a unified error type throughout the Leo crates.
Variants
ParserWarning(ParserWarning)
Represents an Parser Error in a Leo Error.
Implementations
sourceimpl LeoWarning
impl LeoWarning
sourcepub fn error_code(&self) -> String
pub fn error_code(&self) -> String
Implement warning code for each type of Warning.
Trait Implementations
sourceimpl Debug for LeoWarning
impl Debug for LeoWarning
sourceimpl Display for LeoWarning
impl Display for LeoWarning
sourceimpl Error for LeoWarning
impl Error for LeoWarning
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<ParserWarning> for LeoWarning
impl From<ParserWarning> for LeoWarning
sourcefn from(source: ParserWarning) -> Self
fn from(source: ParserWarning) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for LeoWarning
impl Send for LeoWarning
impl Sync for LeoWarning
impl Unpin for LeoWarning
impl UnwindSafe for LeoWarning
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more