pub enum LeoWarning {
    ParserWarning(ParserWarning),
    StaticAnalyzerWarning(StaticAnalyzerWarning),
    TypeCheckerWarning(TypeCheckerWarning),
}Expand description
The LeoWarning type that contains all sub warning types. This allows a unified warning type throughout the Leo crates.
Variants§
ParserWarning(ParserWarning)
Represents an Parser Warning in a Leo Warning.
StaticAnalyzerWarning(StaticAnalyzerWarning)
Represents a Static Analyzer Warning in a Leo Warning.
TypeCheckerWarning(TypeCheckerWarning)
Represents a Type Checker Warning in a Leo Warning.
Implementations§
Source§impl 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§
Source§impl Debug for LeoWarning
 
impl Debug for LeoWarning
Source§impl Display for LeoWarning
 
impl Display for LeoWarning
Source§impl Error for LeoWarning
 
impl Error for LeoWarning
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<ParserWarning> for LeoWarning
 
impl From<ParserWarning> for LeoWarning
Source§fn from(source: ParserWarning) -> Self
 
fn from(source: ParserWarning) -> Self
Converts to this type from the input type.
Source§impl From<StaticAnalyzerWarning> for LeoWarning
 
impl From<StaticAnalyzerWarning> for LeoWarning
Source§fn from(source: StaticAnalyzerWarning) -> Self
 
fn from(source: StaticAnalyzerWarning) -> Self
Converts to this type from the input type.
Source§impl From<TypeCheckerWarning> for LeoWarning
 
impl From<TypeCheckerWarning> for LeoWarning
Source§fn from(source: TypeCheckerWarning) -> Self
 
fn from(source: TypeCheckerWarning) -> Self
Converts to this type from the input type.
Source§impl Hash for LeoWarning
 
impl Hash for LeoWarning
Source§impl PartialEq for LeoWarning
 
impl PartialEq for LeoWarning
impl Eq for LeoWarning
impl StructuralPartialEq for LeoWarning
Auto Trait Implementations§
impl Freeze for LeoWarning
impl RefUnwindSafe for LeoWarning
impl Send for LeoWarning
impl Sync for LeoWarning
impl Unpin for LeoWarning
impl UnwindSafe for LeoWarning
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
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more