Struct oni_comb_parser_rs::prelude::ParseState
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)