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)>
Returns 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>> for VerifierErrors
impl From<Vec<VerifierError>> 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>> for VerifierErrors
impl Into<Vec<VerifierError>> 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 for VerifierErrors
impl PartialEq for VerifierErrors
impl Eq for VerifierErrors
impl StructuralPartialEq for VerifierErrors
Auto Trait Implementations§
impl Freeze for VerifierErrors
impl RefUnwindSafe for VerifierErrors
impl Send for VerifierErrors
impl Sync for VerifierErrors
impl Unpin for VerifierErrors
impl UnwindSafe for VerifierErrors
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more