[−][src]Struct combine_language::Reserved
Parses a reserved word
Trait Implementations
impl<'a, 'b, Input> Parser<Input> for Reserved<'a, 'b, Input> where
Input: Stream<Token = char> + 'b,
Input::Error: ParseError<Input::Token, Input::Range, Input::Position>,
[src]
Input: Stream<Token = char> + 'b,
Input::Error: ParseError<Input::Token, Input::Range, Input::Position>,
type Output = &'static str
The type which is returned if the parser is successful.
type PartialState = <Lex<'a, 'b, Try<Skip<Expected<With<TokensCmp<fn(_: char, _: char) -> bool, Chars<'static>, Input>, Value<Input, &'static str>>, &'static str>, NotFollowedBy<LanguageParser<'a, 'b, Input, char>>>>, Input> as Parser<Input>>::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<Self::Output, <Input as StreamOnce>::Error>
[src]
&mut self,
input: &mut Input
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
pub fn parse_first(
&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 parse_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 add_error(&mut self, error: &mut Tracked<<Input as StreamOnce>::Error>)
[src]
pub fn add_committed_expected_error(
&mut self,
error: &mut Tracked<<Input as StreamOnce>::Error>
)
[src]
&mut self,
error: &mut Tracked<<Input as StreamOnce>::Error>
)
pub fn parser_count(&self) -> ErrorOffset
[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 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, Input> !RefUnwindSafe for Reserved<'a, 'b, Input>
[src]
impl<'a, 'b, Input> !Send for Reserved<'a, 'b, Input>
[src]
impl<'a, 'b, Input> !Sync for Reserved<'a, 'b, Input>
[src]
impl<'a, 'b, Input> Unpin for Reserved<'a, 'b, Input> where
Input: Unpin,
'a: 'b,
[src]
Input: Unpin,
'a: 'b,
impl<'a, 'b, Input> !UnwindSafe for Reserved<'a, 'b, Input>
[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, 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>,