Struct cranelift_codegen::verifier::VerifierErrors
source · pub struct VerifierErrors(pub Vec<VerifierError>);
Expand description
List of verifier errors.
Tuple Fields§
§0: Vec<VerifierError>
Implementations§
source§impl 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§
source§impl Clone for VerifierErrors
impl Clone for VerifierErrors
source§fn clone(&self) -> VerifierErrors
fn clone(&self) -> VerifierErrors
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 VerifierErrors
impl Debug for VerifierErrors
source§impl Default for VerifierErrors
impl Default for VerifierErrors
source§fn default() -> VerifierErrors
fn default() -> VerifierErrors
Returns the “default value” for a type. Read more
source§impl Display for VerifierErrors
impl Display for VerifierErrors
source§impl Error for VerifierErrors
impl Error for VerifierErrors
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Vec<VerifierError, Global>> for VerifierErrors
impl From<Vec<VerifierError, Global>> for VerifierErrors
source§fn from(v: Vec<VerifierError>) -> Self
fn from(v: Vec<VerifierError>) -> Self
Converts to this type from the input type.
source§impl From<VerifierErrors> for CodegenError
impl From<VerifierErrors> for CodegenError
source§fn from(source: VerifierErrors) -> Self
fn from(source: VerifierErrors) -> Self
Converts to this type from the input type.
source§impl Into<Result<(), VerifierErrors>> for VerifierErrors
impl Into<Result<(), VerifierErrors>> for VerifierErrors
source§fn into(self) -> VerifierResult<()>
fn into(self) -> VerifierResult<()>
Converts this type into the (usually inferred) input type.
source§impl Into<Vec<VerifierError, Global>> for VerifierErrors
impl Into<Vec<VerifierError, Global>> for VerifierErrors
source§fn into(self) -> Vec<VerifierError>
fn into(self) -> Vec<VerifierError>
Converts this type into the (usually inferred) input type.
source§impl PartialEq<VerifierErrors> for VerifierErrors
impl PartialEq<VerifierErrors> for VerifierErrors
source§fn eq(&self, other: &VerifierErrors) -> bool
fn eq(&self, other: &VerifierErrors) -> bool
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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.