pub struct ParseState<'a, I> { /* private fields */ }
Expand description
現在の解析状態を示す構造体。
Implementations§
Source§impl<'a, I> ParseState<'a, I>
impl<'a, I> ParseState<'a, I>
pub fn new(input: &'a [I], offset: usize) -> Self
pub fn last_offset(&self) -> Option<usize>
pub fn next_offset(&self) -> usize
pub fn add_offset(&self, num_chars: usize) -> ParseState<'a, I>
pub fn input(&self) -> &'a [I]
pub fn slice_with_len(&self, n: usize) -> &'a [I]
Trait Implementations§
Source§impl<'a, I: Clone> Clone for ParseState<'a, I>
impl<'a, I: Clone> Clone for ParseState<'a, I>
Source§fn clone(&self) -> ParseState<'a, I>
fn clone(&self) -> ParseState<'a, I>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, I> Freeze for ParseState<'a, I>
impl<'a, I> RefUnwindSafe for ParseState<'a, I>where
I: RefUnwindSafe,
impl<'a, I> Send for ParseState<'a, I>where
I: Sync,
impl<'a, I> Sync for ParseState<'a, I>where
I: Sync,
impl<'a, I> Unpin for ParseState<'a, I>
impl<'a, I> UnwindSafe for ParseState<'a, I>where
I: RefUnwindSafe,
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