Struct yap::types::IterTokensLocation
source · pub struct IterTokensLocation<I>(/* private fields */);
Expand description
This implements TokenLocation
and stores the location and state of
our current cursor into some iterator. The location is equivalent to offset
in [Iterator::nth(offset)
].
Trait Implementations§
source§impl<I: Clone> Clone for IterTokensLocation<I>
impl<I: Clone> Clone for IterTokensLocation<I>
source§fn clone(&self) -> IterTokensLocation<I>
fn clone(&self) -> IterTokensLocation<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 moresource§impl<I> Debug for IterTokensLocation<I>
impl<I> Debug for IterTokensLocation<I>
source§impl<I> PartialEq for IterTokensLocation<I>
impl<I> PartialEq for IterTokensLocation<I>
source§impl<I> TokenLocation for IterTokensLocation<I>
impl<I> TokenLocation for IterTokensLocation<I>
Auto Trait Implementations§
impl<I> RefUnwindSafe for IterTokensLocation<I>where I: RefUnwindSafe,
impl<I> Send for IterTokensLocation<I>where I: Send,
impl<I> Sync for IterTokensLocation<I>where I: Sync,
impl<I> Unpin for IterTokensLocation<I>where I: Unpin,
impl<I> UnwindSafe for IterTokensLocation<I>where I: UnwindSafe,
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