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]
fn clone(&self) -> IndexPositioner
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for IndexPositioner
[src]
impl Default for IndexPositioner
[src]
fn default() -> IndexPositioner
[src]
impl PartialEq<IndexPositioner> for IndexPositioner
[src]
fn eq(&self, other: &IndexPositioner) -> bool
[src]
fn ne(&self, other: &IndexPositioner) -> bool
[src]
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 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,
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
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,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,