pub struct IndexPositioner(/* private fields */);Expand description
The IndexPositioner<Item, Range> struct maintains the current index into the stream Input.  The
initial index is index 0.  Each Item committed increments the index by 1; each range committed
increments the position by range.len().
Implementations§
Source§impl IndexPositioner
 
impl IndexPositioner
pub fn new() -> IndexPositioner
pub fn new_with_position(position: usize) -> IndexPositioner
Trait Implementations§
Source§impl Clone for IndexPositioner
 
impl Clone for IndexPositioner
Source§fn clone(&self) -> IndexPositioner
 
fn clone(&self) -> IndexPositioner
Returns a duplicate 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 Debug for IndexPositioner
 
impl Debug for IndexPositioner
Source§impl Default for IndexPositioner
 
impl Default for IndexPositioner
Source§fn default() -> IndexPositioner
 
fn default() -> IndexPositioner
Returns the “default value” for a type. Read more
Source§impl PartialEq for IndexPositioner
 
impl PartialEq for IndexPositioner
Source§impl<Item> Positioner<Item> for IndexPositionerwhere
    Item: Clone,
 
impl<Item> Positioner<Item> for IndexPositionerwhere
    Item: Clone,
type Checkpoint = IndexPositioner
Source§fn update(&mut self, _item: &Item)
 
fn update(&mut self, _item: &Item)
Updates the position given that 
token has been taken from the streamfn checkpoint(&self) -> Self::Checkpoint
fn reset(&mut self, checkpoint: Self::Checkpoint)
Source§impl<Item, Range> RangePositioner<Item, Range> for IndexPositioner
 
impl<Item, Range> RangePositioner<Item, Range> for IndexPositioner
Source§fn update_range(&mut self, range: &Range)
 
fn update_range(&mut self, range: &Range)
Updates the position given that 
range has been taken from the streamimpl StructuralPartialEq for IndexPositioner
Auto Trait Implementations§
impl Freeze for IndexPositioner
impl RefUnwindSafe for IndexPositioner
impl Send for IndexPositioner
impl Sync for IndexPositioner
impl Unpin for IndexPositioner
impl UnwindSafe for IndexPositioner
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