Struct combine::stream::state::IndexPositioner [−][src]
The IndexPositioner<Item, Range>
struct maintains the current index into the stream I
. The
initial index is index 0. Each Item
consumed increments the index by 1; each range
consumed
increments the position by range.len()
.
Implementations
impl IndexPositioner
[src][−]
pub fn new() -> IndexPositioner
[src]
pub fn new_with_position(position: usize) -> IndexPositioner
[src]
Trait Implementations
impl Clone for IndexPositioner
[src][+]
impl Debug for IndexPositioner
[src][+]
impl Default for IndexPositioner
[src][+]
impl PartialEq<IndexPositioner> for IndexPositioner
[src][+]
impl<Item> Positioner<Item> for IndexPositioner where
Item: PartialEq + Clone,
[src][+]
Item: PartialEq + Clone,
impl<Item, Range> RangePositioner<Item, Range> for IndexPositioner where
Item: PartialEq + Clone,
Range: PartialEq + Clone + Range,
[src][+]
Item: PartialEq + Clone,
Range: PartialEq + Clone + Range,
impl Resetable for IndexPositioner
[src][+]
impl StructuralPartialEq for IndexPositioner
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,