pub enum CaptureReadIssue {
Missing(CaptureExpectation),
Unexpected(CaptureExpectation),
InputRemaining,
SequenceUnbounded {
limit: usize,
},
SequenceMemberDidNotAdvance,
CursorRangeContradiction,
}Expand description
Why generic captured-token grammar mechanics could not complete one read.
These rows state only token structure. The caller retains declaration vocabulary, clause meaning, and diagnostic policy.
Variants§
Missing(CaptureExpectation)
The sequence ended before the requested shape appeared.
Unexpected(CaptureExpectation)
The next token did not carry the requested shape.
InputRemaining
Finishing found an unconsumed token.
SequenceUnbounded
A separated sequence exceeded the caller’s declared magnitude.
SequenceMemberDidNotAdvance
A separated-sequence reader returned one member without consuming a token.
CursorRangeContradiction
A cursor’s consumed range no longer belongs to the captured sequence it reads.
Trait Implementations§
Source§impl Clone for CaptureReadIssue
impl Clone for CaptureReadIssue
Source§fn clone(&self) -> CaptureReadIssue
fn clone(&self) -> CaptureReadIssue
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 CaptureReadIssue
impl Debug for CaptureReadIssue
Source§impl Display for CaptureReadIssue
impl Display for CaptureReadIssue
impl Eq for CaptureReadIssue
Source§impl Hash for CaptureReadIssue
impl Hash for CaptureReadIssue
Source§impl PartialEq for CaptureReadIssue
impl PartialEq for CaptureReadIssue
impl StructuralPartialEq for CaptureReadIssue
Auto Trait Implementations§
impl Freeze for CaptureReadIssue
impl RefUnwindSafe for CaptureReadIssue
impl Send for CaptureReadIssue
impl Sync for CaptureReadIssue
impl Unpin for CaptureReadIssue
impl UnsafeUnpin for CaptureReadIssue
impl UnwindSafe for CaptureReadIssue
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