pub struct RawLineComment<T>(/* private fields */);Trait Implementations§
Source§impl<T: Clone> Clone for RawLineComment<T>
impl<T: Clone> Clone for RawLineComment<T>
Source§fn clone(&self) -> RawLineComment<T>
fn clone(&self) -> RawLineComment<T>
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 moreimpl<T: Copy> Copy for RawLineComment<T>
Source§impl<T: Debug> Debug for RawLineComment<T>
impl<T: Debug> Debug for RawLineComment<T>
Source§impl<'input, B, T> Tokenizer<'input, B> for RawLineComment<T>
impl<'input, B, T> Tokenizer<'input, B> for RawLineComment<T>
type Token = Item<<<B as Buffer<'input>>::Source as AsSlice<'input>>::Slice>
fn to_token<'a>( &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<T> Freeze for RawLineComment<T>where
T: Freeze,
impl<T> RefUnwindSafe for RawLineComment<T>where
T: RefUnwindSafe,
impl<T> Send for RawLineComment<T>where
T: Send,
impl<T> Sync for RawLineComment<T>where
T: Sync,
impl<T> Unpin for RawLineComment<T>where
T: Unpin,
impl<T> UnsafeUnpin for RawLineComment<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RawLineComment<T>where
T: UnwindSafe,
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