[−][src]Struct combine_language::WhiteSpace
A whitespace parser for a language
Trait Implementations
impl<'a, 'b, I: Clone> Clone for WhiteSpace<'a, 'b, I> where
I: Stream<Token = char>,
I::Error: ParseError<I::Token, I::Range, I::Position>,
[src]
I: Stream<Token = char>,
I::Error: ParseError<I::Token, I::Range, I::Position>,
pub fn clone(&self) -> WhiteSpace<'a, 'b, I>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, 'b, Input> Parser<Input> for WhiteSpace<'a, 'b, Input> where
Input: Stream<Token = char>,
Input::Error: ParseError<Input::Token, Input::Range, Input::Position>,
[src]
Input: Stream<Token = char>,
Input::Error: ParseError<Input::Token, Input::Range, Input::Position>,
type Output = ()
The type which is returned if the parser is successful.
type PartialState = ()
Determines the state necessary to resume parsing after more input is supplied. Read more
pub fn parse_lazy(&mut self, input: &mut Input) -> ParseResult<(), Input::Error>
[src]
pub fn parse(
&mut self,
input: Input
) -> Result<(Self::Output, Input), <Input as StreamOnce>::Error>
[src]
&mut self,
input: Input
) -> Result<(Self::Output, Input), <Input as StreamOnce>::Error>
pub fn parse_with_state(
&mut self,
input: &mut Input,
state: &mut Self::PartialState
) -> Result<Self::Output, <Input as StreamOnce>::Error>
[src]
&mut self,
input: &mut Input,
state: &mut Self::PartialState
) -> Result<Self::Output, <Input as StreamOnce>::Error>
pub fn parse_stream(
&mut self,
input: &mut Input
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
[src]
&mut self,
input: &mut Input
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
pub fn add_error(&mut self, _error: &mut Tracked<<Input as StreamOnce>::Error>)
[src]
pub fn parse_stream_partial(
&mut self,
input: &mut Input,
state: &mut Self::PartialState
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
[src]
&mut self,
input: &mut Input,
state: &mut Self::PartialState
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
pub fn by_ref(&mut self) -> &mut Self
[src]
pub fn with<P2>(self, p: P2) -> With<Self, P2> where
P2: Parser<Input>,
[src]
P2: Parser<Input>,
pub fn skip<P2>(self, p: P2) -> Skip<Self, P2> where
P2: Parser<Input>,
[src]
P2: Parser<Input>,
pub fn and<P2>(self, p: P2) -> (Self, P2) where
P2: Parser<Input>,
[src]
P2: Parser<Input>,
pub fn or<P2>(self, p: P2) -> Or<Self, P2> where
P2: Parser<Input, Output = Self::Output>,
[src]
P2: Parser<Input, Output = Self::Output>,
pub fn then<N, F>(self, f: F) -> Then<Self, F> where
F: FnMut(Self::Output) -> N,
N: Parser<Input>,
[src]
F: FnMut(Self::Output) -> N,
N: Parser<Input>,
pub fn then_partial<N, F>(self, f: F) -> ThenPartial<Self, F> where
F: FnMut(&mut Self::Output) -> N,
N: Parser<Input>,
[src]
F: FnMut(&mut Self::Output) -> N,
N: Parser<Input>,
pub fn then_ref<N, F>(self, f: F) -> ThenRef<Self, F> where
F: FnMut(&Self::Output) -> N,
N: Parser<Input>,
[src]
F: FnMut(&Self::Output) -> N,
N: Parser<Input>,
pub fn map<F, B>(self, f: F) -> Map<Self, F> where
F: FnMut(Self::Output) -> B,
[src]
F: FnMut(Self::Output) -> B,
pub fn map_input<F, B>(self, f: F) -> MapInput<Self, F> where
F: FnMut(Self::Output, &mut Input) -> B,
[src]
F: FnMut(Self::Output, &mut Input) -> B,
pub fn flat_map<F, B>(self, f: F) -> FlatMap<Self, F> where
F: FnMut(Self::Output) -> Result<B, <Input as StreamOnce>::Error>,
[src]
F: FnMut(Self::Output) -> Result<B, <Input as StreamOnce>::Error>,
pub fn message<S>(self, msg: S) -> Message<Self, S> where
S: for<'s> ErrorInfo<'s, <Input as StreamOnce>::Token, <Input as StreamOnce>::Range>,
[src]
S: for<'s> ErrorInfo<'s, <Input as StreamOnce>::Token, <Input as StreamOnce>::Range>,
pub fn expected<S>(self, msg: S) -> Expected<Self, S> where
S: for<'s> ErrorInfo<'s, <Input as StreamOnce>::Token, <Input as StreamOnce>::Range>,
[src]
S: for<'s> ErrorInfo<'s, <Input as StreamOnce>::Token, <Input as StreamOnce>::Range>,
pub fn silent(self) -> Silent<Self>
[src]
pub fn and_then<F, O, E>(self, f: F) -> AndThen<Self, F> where
E: Into<<<Input as StreamOnce>::Error as ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>>::StreamError>,
F: FnMut(Self::Output) -> Result<O, E>,
Self: Parser<Input>,
[src]
E: Into<<<Input as StreamOnce>::Error as ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>>::StreamError>,
F: FnMut(Self::Output) -> Result<O, E>,
Self: Parser<Input>,
pub fn iter(
self,
input: &mut Input
) -> Iter<'_, Input, Self, Self::PartialState, FirstMode> where
Self: Parser<Input>,
[src]
self,
input: &mut Input
) -> Iter<'_, Input, Self, Self::PartialState, FirstMode> where
Self: Parser<Input>,
pub fn partial_iter<M>(
self,
mode: M,
input: &'a mut Input,
partial_state: &'s mut Self::PartialState
) -> Iter<'a, Input, Self, &'s mut Self::PartialState, M> where
M: ParseMode,
Self: Parser<Input>,
[src]
self,
mode: M,
input: &'a mut Input,
partial_state: &'s mut Self::PartialState
) -> Iter<'a, Input, Self, &'s mut Self::PartialState, M> where
M: ParseMode,
Self: Parser<Input>,
pub fn boxed<'a>(
self
) -> Box<dyn Parser<Input, Output = Self::Output, PartialState = Self::PartialState> + 'a, Global> where
Self: 'a,
[src]
self
) -> Box<dyn Parser<Input, Output = Self::Output, PartialState = Self::PartialState> + 'a, Global> where
Self: 'a,
pub fn left<R>(self) -> Either<Self, R> where
R: Parser<Input, Output = Self::Output>,
[src]
R: Parser<Input, Output = Self::Output>,
pub fn right<L>(self) -> Either<L, Self> where
L: Parser<Input, Output = Self::Output>,
[src]
L: Parser<Input, Output = Self::Output>,
pub fn spanned(self) -> Spanned<Self>
[src]
Auto Trait Implementations
impl<'a, 'b, I> !RefUnwindSafe for WhiteSpace<'a, 'b, I>
[src]
impl<'a, 'b, I> !Send for WhiteSpace<'a, 'b, I>
[src]
impl<'a, 'b, I> !Sync for WhiteSpace<'a, 'b, I>
[src]
impl<'a, 'b, I> Unpin for WhiteSpace<'a, 'b, I> where
'a: 'b,
[src]
'a: 'b,
impl<'a, 'b, I> !UnwindSafe for WhiteSpace<'a, 'b, I>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,