pub struct StreamTokensLocation { /* private fields */ }
Expand description
This implements TokenLocation
and stores the location. It also marks the Iterator::Item
s
since it was created to be stored for when the corresponding StreamTokens
is reset.
The location is equivalent to offset
in [Iterator::nth(offset)
].
The Drop
implementation will un-mark that Iterator::Item
s must be stored,
allowing the originating StreamTokens
to drop old values and free memory.
Trait Implementations§
Source§impl Clone for StreamTokensLocation
impl Clone for StreamTokensLocation
Source§impl Debug for StreamTokensLocation
impl Debug for StreamTokensLocation
Source§impl Drop for StreamTokensLocation
impl Drop for StreamTokensLocation
Source§impl PartialEq for StreamTokensLocation
impl PartialEq for StreamTokensLocation
Source§impl TokenLocation for StreamTokensLocation
impl TokenLocation for StreamTokensLocation
impl Eq for StreamTokensLocation
Auto Trait Implementations§
impl Freeze for StreamTokensLocation
impl !RefUnwindSafe for StreamTokensLocation
impl !Send for StreamTokensLocation
impl !Sync for StreamTokensLocation
impl Unpin for StreamTokensLocation
impl !UnwindSafe for StreamTokensLocation
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