[−][src]Struct combine::stream::state::IndexPositioner
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()
.
Methods
impl IndexPositioner
[src]
pub fn new() -> IndexPositioner
[src]
pub fn new_with_position(position: usize) -> IndexPositioner
[src]
Trait Implementations
impl<Item> Positioner<Item> for IndexPositioner where
Item: PartialEq + Clone,
[src]
Item: PartialEq + Clone,
type Position = usize
The type which keeps track of the position
fn position(&self) -> usize
[src]
fn update(&mut self, _item: &Item)
[src]
impl<Item, Range> RangePositioner<Item, Range> for IndexPositioner where
Item: PartialEq + Clone,
Range: PartialEq + Clone + Range,
[src]
Item: PartialEq + Clone,
Range: PartialEq + Clone + Range,
fn update_range(&mut self, range: &Range)
[src]
impl Resetable for IndexPositioner
[src]
impl PartialEq<IndexPositioner> for IndexPositioner
[src]
fn eq(&self, other: &IndexPositioner) -> bool
[src]
fn ne(&self, other: &IndexPositioner) -> bool
[src]
impl Default for IndexPositioner
[src]
fn default() -> IndexPositioner
[src]
impl Clone for IndexPositioner
[src]
fn clone(&self) -> IndexPositioner
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for IndexPositioner
[src]
Auto Trait Implementations
impl Send for IndexPositioner
impl Sync for IndexPositioner
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into 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 for T where
T: From<U>,
[src]
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'a mut Wfn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'a mut W
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,