pub enum TypeCheckerWarning {
Formatted(Formatted),
Backtraced(Backtraced),
}
Expand description
ParserWarning enum that represents all the warnings for the leo-parser
crate.
Variants§
Formatted(Formatted)
Backtraced(Backtraced)
Implementations§
Source§impl TypeCheckerWarning
impl TypeCheckerWarning
pub fn some_paths_do_not_await_all_futures( num_total_paths: impl Display, num_unawaited_paths: impl Display, span: Span, ) -> Self
pub fn some_paths_contain_duplicate_future_awaits( num_total_paths: impl Display, num_duplicate_await_paths: impl Display, span: Span, ) -> Self
pub fn async_function_is_never_called_by_transition_function( name: impl Display, span: Span, ) -> Self
pub fn max_conditional_block_depth_exceeded( max: impl Display, span: Span, ) -> Self
pub fn caller_as_record_owner(record_name: impl Display, span: Span) -> Self
pub fn num_exit_codes() -> i32
Trait Implementations§
Source§impl Clone for TypeCheckerWarning
impl Clone for TypeCheckerWarning
Source§fn clone(&self) -> TypeCheckerWarning
fn clone(&self) -> TypeCheckerWarning
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 TypeCheckerWarning
impl Debug for TypeCheckerWarning
Source§impl Display for TypeCheckerWarning
impl Display for TypeCheckerWarning
Source§impl Error for TypeCheckerWarning
impl Error for TypeCheckerWarning
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<Backtraced> for TypeCheckerWarning
impl From<Backtraced> for TypeCheckerWarning
Source§fn from(source: Backtraced) -> Self
fn from(source: Backtraced) -> Self
Converts to this type from the input type.
Source§impl From<Formatted> for TypeCheckerWarning
impl From<Formatted> for TypeCheckerWarning
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 TypeCheckerWarning
impl Hash for TypeCheckerWarning
Source§impl LeoMessageCode for TypeCheckerWarning
Implements the trait for LeoError Codes.
impl LeoMessageCode for TypeCheckerWarning
Implements the trait for LeoError Codes.
Source§fn error_code(&self) -> String
fn error_code(&self) -> String
Returns the prefixed error identifier.
Source§fn warning_code(&self) -> String
fn warning_code(&self) -> String
Returns the prefixed warning identifier.
Source§fn message_type() -> String
fn message_type() -> String
Returns the message’s code type for the program.
Source§fn code_identifier() -> i8
fn code_identifier() -> i8
The LeoErrorCode which has a default code identifier of 037
(Leo upsidedown and backwards). This is to make the exit codes
unique to Leo itself.
Source§impl PartialEq for TypeCheckerWarning
impl PartialEq for TypeCheckerWarning
impl Eq for TypeCheckerWarning
impl StructuralPartialEq for TypeCheckerWarning
Auto Trait Implementations§
impl Freeze for TypeCheckerWarning
impl RefUnwindSafe for TypeCheckerWarning
impl Send for TypeCheckerWarning
impl Sync for TypeCheckerWarning
impl Unpin for TypeCheckerWarning
impl UnwindSafe for TypeCheckerWarning
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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