[][src]Struct cranelift_codegen::verifier::VerifierErrors

pub struct VerifierErrors(pub Vec<VerifierError>);

List of verifier errors.

Methods

impl VerifierErrors[src]

pub fn new() -> Self[src]

Return a new VerifierErrors struct.

pub fn is_empty(&self) -> bool[src]

Return whether no errors were reported.

pub fn has_error(&self) -> bool[src]

Return whether one or more errors were reported.

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]

Report an error, adding it to the list of errors.

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]

Report a non-fatal error and return Ok.

Trait Implementations

impl Clone for VerifierErrors[src]

impl Debug for VerifierErrors[src]

impl Default for VerifierErrors[src]

impl Display for VerifierErrors[src]

impl Eq for VerifierErrors[src]

impl Error for VerifierErrors[src]

impl From<Vec<VerifierError>> for VerifierErrors[src]

impl From<VerifierErrors> for CodegenError[src]

impl Into<Result<(), VerifierErrors>> for VerifierErrors[src]

impl Into<Vec<VerifierError>> for VerifierErrors[src]

impl PartialEq<VerifierErrors> for VerifierErrors[src]

impl StructuralEq for VerifierErrors[src]

impl StructuralPartialEq for VerifierErrors[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.