pub struct Ident;Expand description
Match a unicode identifier
Trait Implementations§
impl Copy for Ident
Source§impl<'input, B> Tokenizer<'input, B> for Ident
impl<'input, B> Tokenizer<'input, B> for Ident
type Token = Item<<<B as Buffer<'input>>::Source as AsSlice<'input>>::Slice>
fn to_token( &self, reader: &mut Reader<'_, 'input, B>, ) -> Result<Self::Token, Error>
fn peek<'a>(&self, reader: &mut Reader<'_, 'input, B>) -> bool
fn eat(&self, reader: &mut Reader<'_, 'input, B>) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Ident
impl RefUnwindSafe for Ident
impl Send for Ident
impl Sync for Ident
impl Unpin for Ident
impl UnsafeUnpin for Ident
impl UnwindSafe for Ident
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'input, T, B> TokenizerExt<'input, B> for T
impl<'input, T, B> TokenizerExt<'input, B> for T
Source§fn map_ok<F, U>(self, func: F) -> MapOk<Self, F, B>
fn map_ok<F, U>(self, func: F) -> MapOk<Self, F, B>
Transform the successful token produced by this tokenizer using
func. Read moreSource§fn map_err<F, U>(self, func: F) -> MapErr<Self, F, B>
fn map_err<F, U>(self, func: F) -> MapErr<Self, F, B>
Replace errors produced by this tokenizer using
func. Read moreSource§fn repeat(self, count: i32) -> Repeat<Self, B>where
Self: Sized,
fn repeat(self, count: i32) -> Repeat<Self, B>where
Self: Sized,
Repeat this tokenizer
count times and collect the results. Read moreSource§fn many(self) -> Many<Self, B>where
Self: Sized,
fn many(self) -> Many<Self, B>where
Self: Sized,
Apply the
Many combinator: parse the inner tokenizer zero or more times. Read moreSource§fn spanned(self) -> Spanned<Self, B>where
Self: Sized,
fn spanned(self) -> Spanned<Self, B>where
Self: Sized,
Wrap this tokenizer so it returns the matched span along with the token. Read more
Source§fn into_integer(self, base: u32) -> IntoInteger<Self, B>
fn into_integer(self, base: u32) -> IntoInteger<Self, B>
Convert a token containing digits into an integer using the given
base. Read moreSource§fn punctuated<P>(self, punct: P) -> Punctuated<Self, P>
fn punctuated<P>(self, punct: P) -> Punctuated<Self, P>
Parse a punctuated sequence: token, (punct, token)* Read more