pub struct BRP<'b, P>(pub &'b P);Expand description
borrow Parser Uses Newtype to get around conflicting types
Tuple Fields§
§0: &'b PTrait Implementations§
Source§impl<'a, 'b, P: Parser<'a>> Parser<'a> for BRP<'b, P>
impl<'a, 'b, P: Parser<'a>> Parser<'a> for BRP<'b, P>
type Out = <P as Parser<'a>>::Out
fn parse(&self, it: &PIter<'a>) -> ParseRes<'a, Self::Out>
fn parse_s(&self, s: &'a str) -> Result<Self::Out, PErr<'a>>
fn or<B: Parser<'a, Out = Self::Out>>(self, b: B) -> Or<Self, B>
fn asv<V: Clone>(self, v: V) -> Asv<Self, V>
fn map<B, F: Fn(Self::Out) -> B>(self, f: F) -> Map<Self, F>
fn try_map<B, F: Fn(Self::Out) -> Result<B, Expected>>( self, f: F, ) -> TryMap<Self, F>
fn ig(self) -> Ig<Self>
fn brk(self) -> Break<Self>
Auto Trait Implementations§
impl<'b, P> Freeze for BRP<'b, P>
impl<'b, P> RefUnwindSafe for BRP<'b, P>where
P: RefUnwindSafe,
impl<'b, P> Send for BRP<'b, P>where
P: Sync,
impl<'b, P> Sync for BRP<'b, P>where
P: Sync,
impl<'b, P> Unpin for BRP<'b, P>
impl<'b, P> UnwindSafe for BRP<'b, P>where
P: RefUnwindSafe,
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