pub struct MapData;
Trait Implementations
sourceimpl Parser for MapData
impl Parser for MapData
type Out = (String, TData)
fn parse_s(&self, s: &'a str) -> Result<Self::Out, PErr<'a>>
fn parse_sn(&self, s: &'a str) -> Result<(&'a str, Self::Out), PErr<'a>>
sourcefn then<P, V2>(self, b: P) -> Then<Self, P> where
P: Parser<Out = V2>,
fn then<P, V2>(self, b: P) -> Then<Self, P> where
P: Parser<Out = V2>,
returns a parser that will combine the results of this and the given parser into a tuple Read more
sourcefn then_ig<P, V2>(self, b: P) -> ThenIg<Self, P> where
P: Parser<Out = V2>,
fn then_ig<P, V2>(self, b: P) -> ThenIg<Self, P> where
P: Parser<Out = V2>,
returns a Parser that will require the given parser completes, but ignores its result useful for dropping brackets and whitespace Read more
sourcefn ig_then<P, V2>(self, b: P) -> IgThen<Self, P> where
P: Parser<Out = V2>,
fn ig_then<P, V2>(self, b: P) -> IgThen<Self, P> where
P: Parser<Out = V2>,
returns a Parser that will require this parser completes, but only return the result of the given parser useful for dropping brackets and whitespace etc Read more
sourcefn or<P>(self, p: P) -> Or<Self, P> where
P: Parser<Out = Self::Out>,
fn or<P>(self, p: P) -> Or<Self, P> where
P: Parser<Out = Self::Out>,
Returns a Parser that will try both child parsers, (A first) and return the first successfl result Read more
sourcefn map<F, V2>(self, f: F) -> Map<Self, V2, F> where
F: Fn(Self::Out) -> V2,
fn map<F, V2>(self, f: F) -> Map<Self, V2, F> where
F: Fn(Self::Out) -> V2,
Returns a Parser that converts the result of a successful parse to a different type. Much like map on iterators and Result Read more
sourcefn try_map<F, V2>(self, f: F) -> TryMap<Self, V2, F> where
F: Fn(Self::Out) -> Result<V2, Expected>,
fn try_map<F, V2>(self, f: F) -> TryMap<Self, V2, F> where
F: Fn(Self::Out) -> Result<V2, Expected>,
Returns a Parser that converts the result of a successful parse to a different type. however the map function can fail and return a result The Error type should be err::ECode, this does not have line associated. That will be attacked by the TryMap object so this will pass that error up correctly Read more
fn asv<R>(self, r: R) -> As<Self, R> where
R: Clone,
fn ig(self) -> As<Self, ()>
fn map_exp<F>(self, f: F) -> MapExp<Self, F> where
F: Fn(Expected) -> Expected,
fn brk(self) -> Break<Self>
fn pull(self, s: &'a str) -> PullParser<'a, Self, EOI>
fn pull_to<E>(self, end: E, s: &'a str) -> PullParser<'a, Self, E> where
E: Parser,
impl Copy for MapData
Auto Trait Implementations
impl RefUnwindSafe for MapData
impl Send for MapData
impl Sync for MapData
impl Unpin for MapData
impl UnwindSafe for MapData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more