Struct combine::stream::position::IndexPositioner [−][src]
pub struct IndexPositioner(_);
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
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Checkpoint = Self
Updates the position given that token
has been taken from the stream
impl<Item, Range> RangePositioner<Item, Range> for IndexPositioner where
Item: Clone,
Range: Clone + Range,
impl<Item, Range> RangePositioner<Item, Range> for IndexPositioner where
Item: Clone,
Range: Clone + Range,
Updates the position given that range
has been taken from the stream
Auto Trait Implementations
impl RefUnwindSafe for IndexPositioner
impl Send for IndexPositioner
impl Sync for IndexPositioner
impl Unpin for IndexPositioner
impl UnwindSafe for IndexPositioner
Blanket Implementations
Mutably borrows from an owned value. Read more