pub struct MutationCaptureError(/* private fields */);Expand description
How one mutation 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 SECOND helper reading, and the trial grammar is its first.
Implementations§
Source§impl MutationCaptureError
impl MutationCaptureError
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 mutation 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 MutationCaptureError
impl Clone for MutationCaptureError
Source§fn clone(&self) -> MutationCaptureError
fn clone(&self) -> MutationCaptureError
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 MutationCaptureError
Source§impl Debug for MutationCaptureError
impl Debug for MutationCaptureError
Source§impl Display for MutationCaptureError
impl Display for MutationCaptureError
impl Eq for MutationCaptureError
Source§impl Error for MutationCaptureError
impl Error for MutationCaptureError
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 MutationCaptureError
impl Hash for MutationCaptureError
Source§impl PartialEq for MutationCaptureError
impl PartialEq for MutationCaptureError
Source§impl Refused for MutationCaptureError
impl Refused for MutationCaptureError
Source§const FAMILY: Family = SECOND_HELPER_FAMILY
const FAMILY: Family = SECOND_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 MutationCaptureError
Auto Trait Implementations§
impl Freeze for MutationCaptureError
impl RefUnwindSafe for MutationCaptureError
impl Send for MutationCaptureError
impl Sync for MutationCaptureError
impl Unpin for MutationCaptureError
impl UnsafeUnpin for MutationCaptureError
impl UnwindSafe for MutationCaptureError
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