pub enum CapturedAtom {
Word(String),
Punct(char),
Text(String),
Number(String),
ByteText(Vec<u8>),
Character(char),
Byte(u8),
NulTerminatedText(Vec<u8>),
RawIdentifier(String),
JointPunct(char),
}Expand description
One non-group value a capture producer offers to the checked builder.
Groups have their own builder operation so no caller can smuggle child trees carrying foreign paths or handles through an atom seat.
Variants§
Word(String)
An ordinary identifier-shaped word or keyword.
Punct(char)
One punctuation character that stands alone.
Text(String)
A text literal’s text.
Number(String)
A numeric literal, exactly as written.
ByteText(Vec<u8>)
A byte-string literal’s material.
Character(char)
One character literal’s character.
Byte(u8)
One byte literal’s byte.
NulTerminatedText(Vec<u8>)
A C string literal’s material without its terminating NUL.
RawIdentifier(String)
A raw identifier’s name without its r# spelling marker.
JointPunct(char)
One punctuation character joined to the token after it.
Trait Implementations§
Source§impl Clone for CapturedAtom
impl Clone for CapturedAtom
Source§fn clone(&self) -> CapturedAtom
fn clone(&self) -> CapturedAtom
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 CapturedAtom
impl Debug for CapturedAtom
impl Eq for CapturedAtom
Source§impl From<CapturedAtom> for CapturedPayload
impl From<CapturedAtom> for CapturedPayload
Source§fn from(atom: CapturedAtom) -> Self
fn from(atom: CapturedAtom) -> Self
Converts to this type from the input type.
Source§impl Hash for CapturedAtom
impl Hash for CapturedAtom
Source§impl PartialEq for CapturedAtom
impl PartialEq for CapturedAtom
impl StructuralPartialEq for CapturedAtom
Auto Trait Implementations§
impl Freeze for CapturedAtom
impl RefUnwindSafe for CapturedAtom
impl Send for CapturedAtom
impl Sync for CapturedAtom
impl Unpin for CapturedAtom
impl UnsafeUnpin for CapturedAtom
impl UnwindSafe for CapturedAtom
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