pub enum CheckInterfacesError {
Formatted(Formatted),
Backtraced(Backtraced),
}Variants§
Formatted(Formatted)
Backtraced(Backtraced)
Implementations§
Source§impl CheckInterfacesError
impl CheckInterfacesError
pub fn interface_not_found(name: impl Display, span: Span) -> Self
pub fn conflicting_interface_member( member_name: impl Display, interface_name: impl Display, parent_name: impl Display, span: Span, ) -> Self
pub fn missing_interface_function( func_name: impl Display, interface_name: impl Display, program_name: impl Display, span: Span, ) -> Self
pub fn missing_interface_record( record_name: impl Display, interface_name: impl Display, program_name: impl Display, span: Span, ) -> Self
pub fn signature_mismatch( func_name: impl Display, interface_name: impl Display, expected: impl Display, found: impl Display, span: Span, ) -> Self
pub fn not_an_interface(name: impl Display, span: Span) -> Self
pub fn missing_interface_mapping( mapping_name: impl Display, interface_name: impl Display, program_name: impl Display, span: Span, ) -> Self
pub fn missing_interface_storage( storage_name: impl Display, interface_name: impl Display, program_name: impl Display, span: Span, ) -> Self
pub fn mapping_type_mismatch( mapping_name: impl Display, interface_name: impl Display, expected_key: impl Display, expected_value: impl Display, found_key: impl Display, found_value: impl Display, span: Span, ) -> Self
pub fn storage_type_mismatch( storage_name: impl Display, interface_name: impl Display, expected: impl Display, found: impl Display, span: Span, ) -> Self
pub fn cyclic_interface_inheritance(path: impl Display) -> Self
pub fn conflicting_record_field( field_name: impl Display, record_name: impl Display, interface_name: impl Display, parent_name: impl Display, span: Span, ) -> Self
pub fn record_field_missing( field_name: impl Display, record_name: impl Display, interface_name: impl Display, program_name: impl Display, span: Span, ) -> Self
pub fn record_field_type_mismatch( field_name: impl Display, record_name: impl Display, interface_name: impl Display, expected: impl Display, found: impl Display, span: Span, ) -> Self
pub fn record_prototype_owner_wrong_type( record_name: impl Display, found_type: impl Display, span: Span, ) -> Self
pub fn num_exit_codes() -> i32
pub fn with_labels(self, labels: Vec<Label>) -> Self
Trait Implementations§
Source§impl Clone for CheckInterfacesError
impl Clone for CheckInterfacesError
Source§fn clone(&self) -> CheckInterfacesError
fn clone(&self) -> CheckInterfacesError
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 CheckInterfacesError
impl Debug for CheckInterfacesError
Source§impl Display for CheckInterfacesError
impl Display for CheckInterfacesError
Source§impl Error for CheckInterfacesError
impl Error for CheckInterfacesError
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 CheckInterfacesError
impl From<Backtraced> for CheckInterfacesError
Source§fn from(source: Backtraced) -> Self
fn from(source: Backtraced) -> Self
Converts to this type from the input type.
Source§impl From<CheckInterfacesError> for LeoError
impl From<CheckInterfacesError> for LeoError
Source§fn from(source: CheckInterfacesError) -> Self
fn from(source: CheckInterfacesError) -> Self
Converts to this type from the input type.
Source§impl From<Formatted> for CheckInterfacesError
impl From<Formatted> for CheckInterfacesError
Source§impl LeoMessageCode for CheckInterfacesError
Implements the trait for LeoError Codes.
impl LeoMessageCode for CheckInterfacesError
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.
Auto Trait Implementations§
impl Freeze for CheckInterfacesError
impl RefUnwindSafe for CheckInterfacesError
impl Send for CheckInterfacesError
impl Sync for CheckInterfacesError
impl Unpin for CheckInterfacesError
impl UnsafeUnpin for CheckInterfacesError
impl UnwindSafe for CheckInterfacesError
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,
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