pub struct ShadowCaptureError(/* private fields */);Expand description
How one shadow declaration was not read.
Its own type, because a diagnostic’s family tag is a fact about the type: this grammar is a declaration’s shadow reading, and the trial, mutation, and bench grammars each carry their own.
Implementations§
Source§impl ShadowCaptureError
impl ShadowCaptureError
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 shadow grammar’s own reading established.
Sourcepub const fn binding_refused(
grammar: Grammar,
issue: CaptureIssue,
at: SpanHandle,
) -> Self
pub const fn binding_refused( grammar: Grammar, issue: CaptureIssue, at: SpanHandle, ) -> Self
One refusal from the direct-binding reading, retained without flattening its owner.
Sourcepub const fn refusal(&self) -> &HelperRefusal
pub const fn refusal(&self) -> &HelperRefusal
The refusal itself.
Trait Implementations§
Source§impl Clone for ShadowCaptureError
impl Clone for ShadowCaptureError
Source§fn clone(&self) -> ShadowCaptureError
fn clone(&self) -> ShadowCaptureError
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 ShadowCaptureError
Source§impl Debug for ShadowCaptureError
impl Debug for ShadowCaptureError
Source§impl Display for ShadowCaptureError
impl Display for ShadowCaptureError
impl Eq for ShadowCaptureError
Source§impl Error for ShadowCaptureError
impl Error for ShadowCaptureError
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 ShadowCaptureError
impl Hash for ShadowCaptureError
Source§impl PartialEq for ShadowCaptureError
impl PartialEq for ShadowCaptureError
Source§impl Refused for ShadowCaptureError
impl Refused for ShadowCaptureError
Source§const FAMILY: Family = SHADOW_HELPER_FAMILY
const FAMILY: Family = SHADOW_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 ShadowCaptureError
Auto Trait Implementations§
impl Freeze for ShadowCaptureError
impl RefUnwindSafe for ShadowCaptureError
impl Send for ShadowCaptureError
impl Sync for ShadowCaptureError
impl Unpin for ShadowCaptureError
impl UnsafeUnpin for ShadowCaptureError
impl UnwindSafe for ShadowCaptureError
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