Struct winnow::combinator::ByRef
source · pub struct ByRef<'p, P> { /* private fields */ }
Expand description
Implementation of Parser::by_ref
Trait Implementations§
source§impl<'p, I, O, E, P> Parser<I, O, E> for ByRef<'p, P>where
P: Parser<I, O, E>,
impl<'p, I, O, E, P> Parser<I, O, E> for ByRef<'p, P>where
P: Parser<I, O, E>,
source§fn parse_next(&mut self, i: &mut I) -> PResult<O, E>
fn parse_next(&mut self, i: &mut I) -> PResult<O, E>
source§fn parse_peek(&mut self, input: I) -> IResult<I, O, E>
fn parse_peek(&mut self, input: I) -> IResult<I, O, E>
source§fn by_ref(&mut self) -> ByRef<'_, Self>where
Self: Sized,
fn by_ref(&mut self) -> ByRef<'_, Self>where
Self: Sized,
Treat
&mut Self
as a parser Read moresource§fn default_value<O2>(self) -> DefaultValue<Self, I, O, O2, E>
fn default_value<O2>(self) -> DefaultValue<Self, I, O, O2, E>
Produce a type’s default value Read more
source§fn void(self) -> Void<Self, I, O, E>where
Self: Sized,
fn void(self) -> Void<Self, I, O, E>where
Self: Sized,
Discards the output of the
Parser
Read moresource§fn output_into<O2>(self) -> OutputInto<Self, I, O, O2, E>
fn output_into<O2>(self) -> OutputInto<Self, I, O, O2, E>
Convert the parser’s output to another type using
std::convert::From
Read moresource§fn map<G, O2>(self, map: G) -> Map<Self, G, I, O, O2, E>
fn map<G, O2>(self, map: G) -> Map<Self, G, I, O, O2, E>
Maps a function over the output of a parser Read more
source§fn flat_map<G, H, O2>(self, map: G) -> FlatMap<Self, G, H, I, O, O2, E>
fn flat_map<G, H, O2>(self, map: G) -> FlatMap<Self, G, H, I, O, O2, E>
Creates a parser from the output of this one Read more
source§fn complete_err(self) -> CompleteErr<Self>where
Self: Sized,
fn complete_err(self) -> CompleteErr<Self>where
Self: Sized,
Auto Trait Implementations§
impl<'p, P> Freeze for ByRef<'p, P>
impl<'p, P> RefUnwindSafe for ByRef<'p, P>where
P: RefUnwindSafe,
impl<'p, P> Send for ByRef<'p, P>where
P: Send,
impl<'p, P> Sync for ByRef<'p, P>where
P: Sync,
impl<'p, P> Unpin for ByRef<'p, P>
impl<'p, P> !UnwindSafe for ByRef<'p, P>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes