pub struct InputRef<'a, T>(/* private fields */);Expand description
A reference of Input. This is used as input of parsers.
Implementations§
Source§impl<'a, T> InputRef<'a, T>
impl<'a, T> InputRef<'a, T>
Sourcepub fn scope_cursor_mut<O>(
&mut self,
jail: impl FnOnce(&mut CursorRef<'_, T>) -> O,
) -> O
pub fn scope_cursor_mut<O>( &mut self, jail: impl FnOnce(&mut CursorRef<'_, T>) -> O, ) -> O
Do something with a mutable reference of Cursor. This crate is safe if you can’t bring arguments to outside. I believe it is true.
Sourcepub fn scope_cursor<O>(&self, jail: impl FnOnce(&CursorRef<'_, T>) -> O) -> O
pub fn scope_cursor<O>(&self, jail: impl FnOnce(&CursorRef<'_, T>) -> O) -> O
Do something with a reference of Cursor. This crate is safe if you can’t bring arguments to outside. I believe it is true.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for InputRef<'a, T>
impl<'a, T> !RefUnwindSafe for InputRef<'a, T>
impl<'a, T> !Send for InputRef<'a, T>
impl<'a, T> !Sync for InputRef<'a, T>
impl<'a, T> Unpin for InputRef<'a, T>
impl<'a, T> !UnwindSafe for InputRef<'a, T>
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