pub struct BenchCaptureError(/* private fields */);Expand description
How one bench helper body was not read.
Its own type, because a diagnostic’s family tag is a fact about the type: this grammar is a declaration’s bench reading, and the trial and mutation grammars each carry their own.
Implementations§
Source§impl BenchCaptureError
impl BenchCaptureError
Sourcepub const fn grammar_refused(
grammar: Grammar,
cause: CaptureCause,
at: SpanHandle,
) -> Self
pub const fn grammar_refused( grammar: Grammar, cause: CaptureCause, at: SpanHandle, ) -> Self
One refusal the bench grammar’s own reading established.
Sourcepub const fn vocabulary_refused(
grammar: Grammar,
refusal: DeclarationError,
at: SpanHandle,
) -> Self
pub const fn vocabulary_refused( grammar: Grammar, refusal: DeclarationError, at: SpanHandle, ) -> Self
One refusal the vocabulary established over a value this grammar read.
Sourcepub const fn refusal(&self) -> &HelperRefusal
pub const fn refusal(&self) -> &HelperRefusal
The refusal itself.
Trait Implementations§
Source§impl Clone for BenchCaptureError
impl Clone for BenchCaptureError
Source§fn clone(&self) -> BenchCaptureError
fn clone(&self) -> BenchCaptureError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BenchCaptureError
Source§impl Debug for BenchCaptureError
impl Debug for BenchCaptureError
Source§impl Display for BenchCaptureError
impl Display for BenchCaptureError
impl Eq for BenchCaptureError
Source§impl Error for BenchCaptureError
impl Error for BenchCaptureError
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 Hash for BenchCaptureError
impl Hash for BenchCaptureError
Source§impl PartialEq for BenchCaptureError
impl PartialEq for BenchCaptureError
Source§impl Refused for BenchCaptureError
impl Refused for BenchCaptureError
Source§const FAMILY: Family = BENCH_HELPER_FAMILY
const FAMILY: Family = BENCH_HELPER_FAMILY
The family whose issue space this refusal’s related identities derive in. Read more
Source§fn class(&self) -> RefusalClass
fn class(&self) -> RefusalClass
Which class of refusal the summary line opens with.
Source§fn observed(&self) -> Observed
fn observed(&self) -> Observed
How what was observed differs from the expected contract, read off that same first issue.
One canonical byte string per issue established BEYOND the primary cause, in the order the body established them. Read more
impl StructuralPartialEq for BenchCaptureError
Auto Trait Implementations§
impl Freeze for BenchCaptureError
impl RefUnwindSafe for BenchCaptureError
impl Send for BenchCaptureError
impl Sync for BenchCaptureError
impl Unpin for BenchCaptureError
impl UnsafeUnpin for BenchCaptureError
impl UnwindSafe for BenchCaptureError
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