pub struct Capture<P>(pub P);
Tuple Fields§
§0: P
Trait Implementations§
Source§impl<'a, P> Parser<&'a str> for Capture<P>
impl<'a, P> Parser<&'a str> for Capture<P>
type Output = &'a str
type Error = <P as Parser<&'a str>>::Error
fn parse( &mut self, input: &'a str, from: usize, ) -> Result<Self::Output, Self::Error>
fn p(self) -> P<Self>where
Self: Sized,
fn by_ref(&mut self) -> P<ByRef<'_, Self>>where
Self: Sized,
fn and<B>(self, b: B) -> P<And<Self, B>>
fn and_skip<B>(self, b: B) -> P<AndSkip<Self, B>>
fn skip_and<B>(self, b: B) -> P<SkipAnd<Self, B>>
fn or<B>(self, b: B) -> P<Or<Self, B>>
fn map<F, Output>(self, f: F) -> P<Map<Self, F>>
fn map_err<F, Error>(self, f: F) -> P<MapErr<Self, F>>
fn and_then<F, Output>(self, f: F) -> P<AndThen<Self, F>>
fn optional(self) -> P<Optional<Self>>where
Self: Sized,
fn bind<B, F>(self, f: F) -> P<Bind<Self, F>>
fn repeat<R>(self, range: R) -> P<Repeat<Self, R>>
impl<P: Copy> Copy for Capture<P>
impl<P> StructuralPartialEq for Capture<P>
Auto Trait Implementations§
impl<P> Freeze for Capture<P>where
P: Freeze,
impl<P> RefUnwindSafe for Capture<P>where
P: RefUnwindSafe,
impl<P> Send for Capture<P>where
P: Send,
impl<P> Sync for Capture<P>where
P: Sync,
impl<P> Unpin for Capture<P>where
P: Unpin,
impl<P> UnwindSafe for Capture<P>where
P: 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