Struct cranelift_codegen::verifier::VerifierErrors
source · [−]pub struct VerifierErrors(pub Vec<VerifierError>);
Expand description
List of verifier errors.
Tuple Fields
0: Vec<VerifierError>
Implementations
sourceimpl VerifierErrors
impl VerifierErrors
sourcepub fn as_result(&self) -> VerifierStepResult<()>
pub fn as_result(&self) -> VerifierStepResult<()>
Return a VerifierStepResult
that is fatal if at least one error was reported,
and non-fatal otherwise.
sourcepub fn report(&mut self, error: impl Into<VerifierError>)
pub fn report(&mut self, error: impl Into<VerifierError>)
Report an error, adding it to the list of errors.
sourcepub fn fatal(
&mut self,
error: impl Into<VerifierError>
) -> VerifierStepResult<()>
pub fn fatal(
&mut self,
error: impl Into<VerifierError>
) -> VerifierStepResult<()>
Report a fatal error and return Err
.
sourcepub fn nonfatal(
&mut self,
error: impl Into<VerifierError>
) -> VerifierStepResult<()>
pub fn nonfatal(
&mut self,
error: impl Into<VerifierError>
) -> VerifierStepResult<()>
Report a non-fatal error and return Ok
.
Trait Implementations
sourceimpl Clone for VerifierErrors
impl Clone for VerifierErrors
sourcefn clone(&self) -> VerifierErrors
fn clone(&self) -> VerifierErrors
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VerifierErrors
impl Debug for VerifierErrors
sourceimpl Default for VerifierErrors
impl Default for VerifierErrors
sourcefn default() -> VerifierErrors
fn default() -> VerifierErrors
Returns the “default value” for a type. Read more
sourceimpl Display for VerifierErrors
impl Display for VerifierErrors
sourceimpl Error for VerifierErrors
impl Error for VerifierErrors
1.30.0 · 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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Vec<VerifierError, Global>> for VerifierErrors
impl From<Vec<VerifierError, Global>> for VerifierErrors
sourcefn from(v: Vec<VerifierError>) -> Self
fn from(v: Vec<VerifierError>) -> Self
Converts to this type from the input type.
sourceimpl From<VerifierErrors> for CodegenError
impl From<VerifierErrors> for CodegenError
sourcefn from(source: VerifierErrors) -> Self
fn from(source: VerifierErrors) -> Self
Converts to this type from the input type.
sourceimpl Into<Result<(), VerifierErrors>> for VerifierErrors
impl Into<Result<(), VerifierErrors>> for VerifierErrors
sourcefn into(self) -> VerifierResult<()>
fn into(self) -> VerifierResult<()>
Converts this type into the (usually inferred) input type.
sourceimpl Into<Vec<VerifierError, Global>> for VerifierErrors
impl Into<Vec<VerifierError, Global>> for VerifierErrors
sourcefn into(self) -> Vec<VerifierError>
fn into(self) -> Vec<VerifierError>
Converts this type into the (usually inferred) input type.
sourceimpl PartialEq<VerifierErrors> for VerifierErrors
impl PartialEq<VerifierErrors> for VerifierErrors
sourcefn eq(&self, other: &VerifierErrors) -> bool
fn eq(&self, other: &VerifierErrors) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VerifierErrors) -> bool
fn ne(&self, other: &VerifierErrors) -> bool
This method tests for !=
.
impl Eq for VerifierErrors
impl StructuralEq for VerifierErrors
impl StructuralPartialEq for VerifierErrors
Auto Trait Implementations
impl RefUnwindSafe for VerifierErrors
impl Send for VerifierErrors
impl Sync for VerifierErrors
impl Unpin for VerifierErrors
impl UnwindSafe for VerifierErrors
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.