pub struct TrialCaptureError(/* private fields */);Expand description
How one trial 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 FIRST helper reading, and the mutation grammar is its second.
Implementations§
Source§impl TrialCaptureError
impl TrialCaptureError
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 trial 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 TrialCaptureError
impl Clone for TrialCaptureError
Source§fn clone(&self) -> TrialCaptureError
fn clone(&self) -> TrialCaptureError
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 TrialCaptureError
Source§impl Debug for TrialCaptureError
impl Debug for TrialCaptureError
Source§impl Display for TrialCaptureError
impl Display for TrialCaptureError
impl Eq for TrialCaptureError
Source§impl Error for TrialCaptureError
impl Error for TrialCaptureError
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 TrialCaptureError
impl Hash for TrialCaptureError
Source§impl PartialEq for TrialCaptureError
impl PartialEq for TrialCaptureError
Source§impl Refused for TrialCaptureError
impl Refused for TrialCaptureError
Source§const PHASE: Phase = crate::diagnostic::Phase::Capture
const PHASE: Phase = crate::diagnostic::Phase::Capture
The step of the road this refusal is raised at.
Source§const FAMILY: Family = FIRST_HELPER_FAMILY
const FAMILY: Family = FIRST_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 TrialCaptureError
Auto Trait Implementations§
impl Freeze for TrialCaptureError
impl RefUnwindSafe for TrialCaptureError
impl Send for TrialCaptureError
impl Sync for TrialCaptureError
impl Unpin for TrialCaptureError
impl UnsafeUnpin for TrialCaptureError
impl UnwindSafe for TrialCaptureError
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