pub struct Byte { /* private fields */ }
Expand description
See byte
Trait Implementations§
Source§impl<'i> Parser<&'i [u8]> for Byte
impl<'i> Parser<&'i [u8]> for Byte
Source§fn try_parse(&self, input: &'i [u8]) -> Option<(Self::Out, &'i [u8])>
fn try_parse(&self, input: &'i [u8]) -> Option<(Self::Out, &'i [u8])>
Recognizes a value from the input and returns the result Read more
Source§fn map<F, Mapped>(self, f: F) -> Map<Self, F>
fn map<F, Mapped>(self, f: F) -> Map<Self, F>
Returns a parser that applies the function
f
to its output Read moreSource§fn or<P>(self, next: P) -> Or<Self, P>where
Self: Sized,
fn or<P>(self, next: P) -> Or<Self, P>where
Self: Sized,
Returns a parser that calls the
next
parser if it fails to match its input. Read moreSource§fn fold<R, Op, Init, IV>(
self,
count: R,
op: Op,
init: Init,
) -> Fold<Self, Op, Init>
fn fold<R, Op, Init, IV>( self, count: R, op: Op, init: Init, ) -> Fold<Self, Op, Init>
Returns a parser that succeeds if it is able to match its input
count
times. Read moreSource§fn repeats<R>(
self,
count: R,
) -> Fold<Self, RepeatsOperation<Self::Out>, RepeatsInit>where
Self: Sized,
R: RepetitionArgument,
fn repeats<R>(
self,
count: R,
) -> Fold<Self, RepeatsOperation<Self::Out>, RepeatsInit>where
Self: Sized,
R: RepetitionArgument,
Returns a parser that succeeds if it is able to match its input
count
times, discarding
any output along the way Read moreSource§fn accumulate<R>(
self,
count: R,
) -> Fold<Self, AccumulateOperation<Self::Out>, AccumulateInit<Self::Out>>where
R: RepetitionArgument,
Self: Sized,
fn accumulate<R>(
self,
count: R,
) -> Fold<Self, AccumulateOperation<Self::Out>, AccumulateInit<Self::Out>>where
R: RepetitionArgument,
Self: Sized,
Returns a parser that succeeds if it is able to match its input
count
times, accumulating
output into a Vec
along the way. Read moreSource§fn input(self) -> Input<Self>where
Self: Sized,
fn input(self) -> Input<Self>where
Self: Sized,
Returns a parser that outputs the slice of the input that was recognized. Read more
Source§fn peek(self) -> Peek<Self>where
Self: Sized,
fn peek(self) -> Peek<Self>where
Self: Sized,
Returns a parser that never consumes any input regardless of its outcome. It can be used to
look ahead. Read more
impl Copy for Byte
Auto Trait Implementations§
impl Freeze for Byte
impl RefUnwindSafe for Byte
impl Send for Byte
impl Sync for Byte
impl Unpin for Byte
impl UnwindSafe for Byte
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