pub enum CaptureExpectation {
Token,
Word(String),
Identifier,
Number,
Punctuation {
mark: char,
spacing: CapturedSpacing,
},
Group(CapturedDelimiter),
}Expand description
The mechanical token shape one capture read asked for.
Variants§
Token
Any one captured token.
Word(String)
One exact ordinary word.
Identifier
One ordinary or raw identifier.
Number
One numeric literal spelling.
Punctuation
One punctuation character with its adjacency stated.
Fields
§
spacing: CapturedSpacingWhether the character joins what follows.
Group(CapturedDelimiter)
One group carrying this delimiter.
Trait Implementations§
Source§impl Clone for CaptureExpectation
impl Clone for CaptureExpectation
Source§fn clone(&self) -> CaptureExpectation
fn clone(&self) -> CaptureExpectation
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 CaptureExpectation
impl Debug for CaptureExpectation
Source§impl Display for CaptureExpectation
impl Display for CaptureExpectation
impl Eq for CaptureExpectation
Source§impl Hash for CaptureExpectation
impl Hash for CaptureExpectation
Source§impl PartialEq for CaptureExpectation
impl PartialEq for CaptureExpectation
impl StructuralPartialEq for CaptureExpectation
Auto Trait Implementations§
impl Freeze for CaptureExpectation
impl RefUnwindSafe for CaptureExpectation
impl Send for CaptureExpectation
impl Sync for CaptureExpectation
impl Unpin for CaptureExpectation
impl UnsafeUnpin for CaptureExpectation
impl UnwindSafe for CaptureExpectation
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