pub enum ApplicationIrError {
MissingDocument(String),
InvalidDocument(String),
InvalidId(String),
DuplicateId(String),
MissingDeclaration(String),
UnsupportedVersion(String),
MissingReference {
owner: String,
target: String,
},
}Expand description
Semantic failures that block contract compilation or loading.
§Variants
MissingDocument: SupportedApplicationIrErrorvariant.InvalidDocument: SupportedApplicationIrErrorvariant.InvalidId: SupportedApplicationIrErrorvariant.DuplicateId: SupportedApplicationIrErrorvariant.MissingDeclaration: SupportedApplicationIrErrorvariant.UnsupportedVersion: SupportedApplicationIrErrorvariant.MissingReference: SupportedApplicationIrErrorvariant.
§Examples
ⓘ
let _ = pharos_runtime_core::application_ir::ApplicationIrError::MissingDocument;§Related
crate::application_irfor constructors, helpers, and neighboring runtime types.
Variants§
MissingDocument(String)
InvalidDocument(String)
InvalidId(String)
DuplicateId(String)
MissingDeclaration(String)
UnsupportedVersion(String)
MissingReference
Trait Implementations§
Source§impl Clone for ApplicationIrError
impl Clone for ApplicationIrError
Source§fn clone(&self) -> ApplicationIrError
fn clone(&self) -> ApplicationIrError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ApplicationIrError
impl Debug for ApplicationIrError
Source§impl PartialEq for ApplicationIrError
impl PartialEq for ApplicationIrError
Source§fn eq(&self, other: &ApplicationIrError) -> bool
fn eq(&self, other: &ApplicationIrError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ApplicationIrError
impl StructuralPartialEq for ApplicationIrError
Auto Trait Implementations§
impl Freeze for ApplicationIrError
impl RefUnwindSafe for ApplicationIrError
impl Send for ApplicationIrError
impl Sync for ApplicationIrError
impl Unpin for ApplicationIrError
impl UnsafeUnpin for ApplicationIrError
impl UnwindSafe for ApplicationIrError
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.