Struct cranelift_codegen::verifier::VerifierErrors [−][src]
pub struct VerifierErrors(pub Vec<VerifierError>);
List of verifier errors.
Implementations
impl VerifierErrors[src]
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]
&mut self,
error: impl Into<VerifierError>
) -> VerifierStepResult<()>
Report a fatal error and return Err.
pub fn nonfatal(
&mut self,
error: impl Into<VerifierError>
) -> VerifierStepResult<()>[src]
&mut self,
error: impl Into<VerifierError>
) -> VerifierStepResult<()>
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]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for VerifierErrors[src]
impl Default for VerifierErrors[src]fn default() -> VerifierErrors[src]
impl Error for VerifierErrors[src]
impl Error for VerifierErrors[src]impl From<Vec<VerifierError, Global>> for VerifierErrors[src]
impl From<Vec<VerifierError, Global>> for VerifierErrors[src]fn from(v: Vec<VerifierError>) -> Self[src]
impl From<VerifierErrors> for CodegenError[src]
impl From<VerifierErrors> for CodegenError[src]fn from(source: VerifierErrors) -> Self[src]
impl Into<Result<(), VerifierErrors>> for VerifierErrors[src]
impl Into<Result<(), VerifierErrors>> for VerifierErrors[src]fn into(self) -> VerifierResult<()>[src]
impl Into<Vec<VerifierError, Global>> for VerifierErrors[src]
impl Into<Vec<VerifierError, Global>> for VerifierErrors[src]fn into(self) -> Vec<VerifierError>[src]
impl PartialEq<VerifierErrors> for VerifierErrors[src]
impl PartialEq<VerifierErrors> for VerifierErrors[src]