Struct byte_parser::StrParser [−][src]
ParseIterator
implementation for a str.
Implementations
impl<'s> StrParser<'s>
[src]
Trait Implementations
impl<'s> Debug for StrParser<'s>
[src]
impl<'s> ParseIterator<'s> for StrParser<'s>
[src]
type PointInTime = ParserPointInTime
The type that is used to store information about the current position.
fn slice(&self) -> &'s [u8]
[src]
fn pit(&self) -> Self::PointInTime
[src]
fn restore_pit(&mut self, pit: Self::PointInTime)
[src]
fn advance(&mut self) -> Option<()>
[src]
fn recorder(&self) -> Option<&Recorder>
[src]
unsafe fn is_valid_utf8() -> bool
[src]
fn advance_if<F>(&mut self, advance_if: F) -> Option<bool> where
F: FnOnce(&u8) -> bool,
[src]
F: FnOnce(&u8) -> bool,
fn byte(&self) -> Option<u8>
[src]
fn next(&mut self) -> Option<u8>
[src]
fn next_if<F>(&mut self, next_if: F) -> Option<u8> where
F: FnOnce(&u8) -> bool,
[src]
F: FnOnce(&u8) -> bool,
fn peek(&mut self) -> Option<u8>
[src]
fn peek_len(&mut self, len: usize) -> Option<&'s [u8]> where
Self: Sized,
[src]
Self: Sized,
fn peek_at(&mut self, pos: usize) -> Option<u8>
[src]
fn ignore_byte(&mut self, byte: u8) -> IgnoreByte<'_, Self> where
Self: Sized,
[src]
Self: Sized,
fn while_byte_fn<F>(&mut self, f: F) -> WhileByteFn<'_, Self, F> where
Self: Sized,
F: Fn(&u8) -> bool,
[src]
Self: Sized,
F: Fn(&u8) -> bool,
fn consume(&mut self) -> &mut Self
[src]
fn consume_and_count(&mut self) -> usize
[src]
fn consume_len(&mut self, len: usize) -> Result<&mut Self, usize>
[src]
fn consume_at_least(&mut self, len: usize) -> Result<&mut Self, usize>
[src]
fn consume_at_least_and_count(&mut self, len: usize) -> Result<usize, usize>
[src]
fn consume_while_byte_fn<F>(&mut self, f: F) -> &mut Self where
Self: Sized,
F: Fn(&u8) -> bool,
[src]
Self: Sized,
F: Fn(&u8) -> bool,
fn consume_while_byte(&mut self, byte: u8) -> &mut Self where
Self: Sized,
[src]
Self: Sized,
fn split_on_byte(&mut self, byte: u8) -> SplitOnByte<'_, Self> where
Self: Sized,
[src]
Self: Sized,
fn count_byte(&mut self, byte: u8) -> usize where
Self: Sized,
[src]
Self: Sized,
fn record(&mut self) -> RecordIter<'_, Self> where
Self: Sized,
[src]
Self: Sized,
fn to_slice(&self) -> &'s [u8]
[src]
unsafe fn to_str_unchecked(&self) -> &'s str
[src]
fn to_str(&self) -> &'s str
[src]
fn try_to_str(&self) -> Result<&'s str, Utf8Error>
[src]
fn consume_to_slice(&mut self) -> &'s [u8]
[src]
unsafe fn consume_to_str_unchecked(&mut self) -> &'s str
[src]
fn consume_to_str(&mut self) -> &'s str
[src]
fn consume_try_to_str(&mut self) -> Result<&'s str, Utf8Error>
[src]
fn expect_byte_fn<F>(&mut self, f: F) -> Result<&mut Self, Option<u8>> where
F: Fn(u8) -> bool,
[src]
F: Fn(u8) -> bool,
fn expect_byte(&mut self, byte: u8) -> Result<&mut Self, Option<u8>>
[src]
fn expect_none(&mut self) -> Result<&mut Self, u8>
[src]
fn stop(&mut self) -> Stop<'_, Self> where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl<'s> RefUnwindSafe for StrParser<'s>
impl<'s> Send for StrParser<'s>
impl<'s> Sync for StrParser<'s>
impl<'s> Unpin for StrParser<'s>
impl<'s> UnwindSafe for StrParser<'s>
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>,