Struct cranelift_codegen::verifier::VerifierErrors [−][src]
pub struct VerifierErrors(pub Vec<VerifierError>);
Expand description
List of verifier errors.
Implementations
impl VerifierErrors
[src]
impl VerifierErrors
[src]pub fn as_result(&self) -> VerifierStepResult<()>
[src]
pub fn as_result(&self) -> VerifierStepResult<()>
[src]Return a VerifierStepResult
that is fatal if at least one error was reported,
and non-fatal otherwise.
pub fn report(&mut self, error: impl Into<VerifierError>)
[src]
pub fn report(&mut self, error: impl Into<VerifierError>)
[src]Report an error, adding it to the list of errors.
pub fn fatal(
&mut self,
error: impl Into<VerifierError>
) -> VerifierStepResult<()>
[src]
pub fn fatal(
&mut self,
error: impl Into<VerifierError>
) -> VerifierStepResult<()>
[src]Report a fatal error and return Err
.
pub fn nonfatal(
&mut self,
error: impl Into<VerifierError>
) -> VerifierStepResult<()>
[src]
pub fn nonfatal(
&mut self,
error: impl Into<VerifierError>
) -> VerifierStepResult<()>
[src]Report a non-fatal error and return Ok
.
Trait Implementations
impl Clone for VerifierErrors
[src]
impl Clone for VerifierErrors
[src]fn clone(&self) -> VerifierErrors
[src]
fn clone(&self) -> VerifierErrors
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for VerifierErrors
[src]
impl Debug for VerifierErrors
[src]impl Default for VerifierErrors
[src]
impl Default for VerifierErrors
[src]fn default() -> VerifierErrors
[src]
fn default() -> VerifierErrors
[src]Returns the “default value” for a type. Read more
impl Display for VerifierErrors
[src]
impl Display for VerifierErrors
[src]impl Error for VerifierErrors
[src]
impl Error for VerifierErrors
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<Vec<VerifierError, Global>> for VerifierErrors
[src]
impl From<Vec<VerifierError, Global>> for VerifierErrors
[src]fn from(v: Vec<VerifierError>) -> Self
[src]
fn from(v: Vec<VerifierError>) -> Self
[src]Performs the conversion.
impl From<VerifierErrors> for CodegenError
[src]
impl From<VerifierErrors> for CodegenError
[src]fn from(source: VerifierErrors) -> Self
[src]
fn from(source: VerifierErrors) -> Self
[src]Performs the conversion.
impl Into<Result<(), VerifierErrors>> for VerifierErrors
[src]
impl Into<Result<(), VerifierErrors>> for VerifierErrors
[src]fn into(self) -> VerifierResult<()>
[src]
fn into(self) -> VerifierResult<()>
[src]Performs the conversion.
impl Into<Vec<VerifierError, Global>> for VerifierErrors
[src]
impl Into<Vec<VerifierError, Global>> for VerifierErrors
[src]fn into(self) -> Vec<VerifierError>
[src]
fn into(self) -> Vec<VerifierError>
[src]Performs the conversion.
impl PartialEq<VerifierErrors> for VerifierErrors
[src]
impl PartialEq<VerifierErrors> for VerifierErrors
[src]fn eq(&self, other: &VerifierErrors) -> bool
[src]
fn eq(&self, other: &VerifierErrors) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &VerifierErrors) -> bool
[src]
fn ne(&self, other: &VerifierErrors) -> bool
[src]This method tests for !=
.
impl Eq for VerifierErrors
[src]
impl StructuralEq for VerifierErrors
[src]
impl StructuralPartialEq for VerifierErrors
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more