Struct proclet::PunctuatedParser
source · pub struct PunctuatedParser<T: TokenTree, M, D>(/* private fields */);
Expand description
Parser for punctuated values.
Implementations§
source§impl<T: TokenTreeExt, M: Parser<T>, D: Parser<T>> PunctuatedParser<T, M, D>
impl<T: TokenTreeExt, M: Parser<T>, D: Parser<T>> PunctuatedParser<T, M, D>
Trait Implementations§
source§impl<T: Clone + TokenTree, M: Clone, D: Clone> Clone for PunctuatedParser<T, M, D>
impl<T: Clone + TokenTree, M: Clone, D: Clone> Clone for PunctuatedParser<T, M, D>
source§fn clone(&self) -> PunctuatedParser<T, M, D>
fn clone(&self) -> PunctuatedParser<T, M, D>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: TokenTreeExt, M: Parser<T>, D: Parser<T>> Parser<T> for PunctuatedParser<T, M, D>
impl<T: TokenTreeExt, M: Parser<T>, D: Parser<T>> Parser<T> for PunctuatedParser<T, M, D>
§type Output<'p, 'b> = Punctuated<<M as Parser<T>>::Output<'p, 'b>, <D as Parser<T>>::Output<'p, 'b>>
where
Self: 'p
type Output<'p, 'b> = Punctuated<<M as Parser<T>>::Output<'p, 'b>, <D as Parser<T>>::Output<'p, 'b>> where Self: 'p
The output type of this parser.
source§fn parse<'p, 'b>(
&'p self,
buf: &mut &'b TokenBuf<T>
) -> Result<Self::Output<'p, 'b>, Error<T::Span>>
fn parse<'p, 'b>( &'p self, buf: &mut &'b TokenBuf<T> ) -> Result<Self::Output<'p, 'b>, Error<T::Span>>
Parse a value from a
TokenBuf
using this parser. Read moreAuto Trait Implementations§
impl<T, M, D> Freeze for PunctuatedParser<T, M, D>
impl<T, M, D> RefUnwindSafe for PunctuatedParser<T, M, D>where
D: RefUnwindSafe,
M: RefUnwindSafe,
impl<T, M, D> Send for PunctuatedParser<T, M, D>
impl<T, M, D> Sync for PunctuatedParser<T, M, D>
impl<T, M, D> Unpin for PunctuatedParser<T, M, D>
impl<T, M, D> UnwindSafe for PunctuatedParser<T, M, D>where
D: UnwindSafe,
M: 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