pub struct CaptureReadRefusal { /* private fields */ }Expand description
One refused mechanical read with the exact producer span available at that site.
A root end-of-input refusal has no token to point at. An end-of-group refusal points at the group token whose closing boundary was reached.
Implementations§
Source§impl CaptureReadRefusal
impl CaptureReadRefusal
Sourcepub const fn issue(&self) -> &CaptureReadIssue
pub const fn issue(&self) -> &CaptureReadIssue
The mechanical disagreement this read established.
Sourcepub const fn token(&self) -> Option<SpanHandle>
pub const fn token(&self) -> Option<SpanHandle>
The exact producer span available at the refusal site.
Root end of input has no token and therefore no span.
Trait Implementations§
Source§impl Clone for CaptureReadRefusal
impl Clone for CaptureReadRefusal
Source§fn clone(&self) -> CaptureReadRefusal
fn clone(&self) -> CaptureReadRefusal
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 moreSource§impl Debug for CaptureReadRefusal
impl Debug for CaptureReadRefusal
Source§impl Display for CaptureReadRefusal
impl Display for CaptureReadRefusal
impl Eq for CaptureReadRefusal
Source§impl Error for CaptureReadRefusal
impl Error for CaptureReadRefusal
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 CaptureReadRefusal
impl Hash for CaptureReadRefusal
Source§impl PartialEq for CaptureReadRefusal
impl PartialEq for CaptureReadRefusal
impl StructuralPartialEq for CaptureReadRefusal
Auto Trait Implementations§
impl Freeze for CaptureReadRefusal
impl RefUnwindSafe for CaptureReadRefusal
impl Send for CaptureReadRefusal
impl Sync for CaptureReadRefusal
impl Unpin for CaptureReadRefusal
impl UnsafeUnpin for CaptureReadRefusal
impl UnwindSafe for CaptureReadRefusal
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