pub struct Reductors<R>(pub R);Expand description
Tuple Fields§
§0: RTrait Implementations§
Source§impl<R: Ord> Ord for Reductors<R>
impl<R: Ord> Ord for Reductors<R>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<R: PartialOrd> PartialOrd for Reductors<R>
impl<R: PartialOrd> PartialOrd for Reductors<R>
Source§impl<A, R1, R2> Reductor<A> for Reductors<(R1, R2)>
impl<A, R1, R2> Reductor<A> for Reductors<(R1, R2)>
Source§type State = (<R1 as Reductor<A>>::State, <R2 as Reductor<A>>::State)
type State = (<R1 as Reductor<A>>::State, <R2 as Reductor<A>>::State)
Intermediate state for the reductor. Read more
Source§fn new(item: A) -> Self::State
fn new(item: A) -> Self::State
This method will be called with the first item yielded by an iterator
to create the initial state of the reductor.
Source§fn reduce(state: Self::State, item: A) -> Self::State
fn reduce(state: Self::State, item: A) -> Self::State
Reduce the current accumulated state with the next item yielded by an iterator,
returning the new state.
Source§fn into_result(state: Self::State) -> Self
fn into_result(state: Self::State) -> Self
After reducing the entire iterator, and exhausting it, turn the final state into
a result.
Source§impl<A, R1, R2, R3> Reductor<A> for Reductors<(R1, R2, R3)>
impl<A, R1, R2, R3> Reductor<A> for Reductors<(R1, R2, R3)>
Source§type State = (<R1 as Reductor<A>>::State, <R2 as Reductor<A>>::State, <R3 as Reductor<A>>::State)
type State = (<R1 as Reductor<A>>::State, <R2 as Reductor<A>>::State, <R3 as Reductor<A>>::State)
Intermediate state for the reductor. Read more
Source§fn new(item: A) -> Self::State
fn new(item: A) -> Self::State
This method will be called with the first item yielded by an iterator
to create the initial state of the reductor.
Source§fn reduce(state: Self::State, item: A) -> Self::State
fn reduce(state: Self::State, item: A) -> Self::State
Reduce the current accumulated state with the next item yielded by an iterator,
returning the new state.
Source§fn into_result(state: Self::State) -> Self
fn into_result(state: Self::State) -> Self
After reducing the entire iterator, and exhausting it, turn the final state into
a result.
Source§impl<A, R1, R2, R3, R4> Reductor<A> for Reductors<(R1, R2, R3, R4)>
impl<A, R1, R2, R3, R4> Reductor<A> for Reductors<(R1, R2, R3, R4)>
Source§type State = (<R1 as Reductor<A>>::State, <R2 as Reductor<A>>::State, <R3 as Reductor<A>>::State, <R4 as Reductor<A>>::State)
type State = (<R1 as Reductor<A>>::State, <R2 as Reductor<A>>::State, <R3 as Reductor<A>>::State, <R4 as Reductor<A>>::State)
Intermediate state for the reductor. Read more
Source§fn new(item: A) -> Self::State
fn new(item: A) -> Self::State
This method will be called with the first item yielded by an iterator
to create the initial state of the reductor.
Source§fn reduce(state: Self::State, item: A) -> Self::State
fn reduce(state: Self::State, item: A) -> Self::State
Reduce the current accumulated state with the next item yielded by an iterator,
returning the new state.
Source§fn into_result(state: Self::State) -> Self
fn into_result(state: Self::State) -> Self
After reducing the entire iterator, and exhausting it, turn the final state into
a result.
Source§impl<A, R1, R2, R3, R4, R5> Reductor<A> for Reductors<(R1, R2, R3, R4, R5)>
impl<A, R1, R2, R3, R4, R5> Reductor<A> for Reductors<(R1, R2, R3, R4, R5)>
Source§type State = (<R1 as Reductor<A>>::State, <R2 as Reductor<A>>::State, <R3 as Reductor<A>>::State, <R4 as Reductor<A>>::State, <R5 as Reductor<A>>::State)
type State = (<R1 as Reductor<A>>::State, <R2 as Reductor<A>>::State, <R3 as Reductor<A>>::State, <R4 as Reductor<A>>::State, <R5 as Reductor<A>>::State)
Intermediate state for the reductor. Read more
Source§fn new(item: A) -> Self::State
fn new(item: A) -> Self::State
This method will be called with the first item yielded by an iterator
to create the initial state of the reductor.
Source§fn reduce(state: Self::State, item: A) -> Self::State
fn reduce(state: Self::State, item: A) -> Self::State
Reduce the current accumulated state with the next item yielded by an iterator,
returning the new state.
Source§fn into_result(state: Self::State) -> Self
fn into_result(state: Self::State) -> Self
After reducing the entire iterator, and exhausting it, turn the final state into
a result.
impl<R: Copy> Copy for Reductors<R>
impl<R: Eq> Eq for Reductors<R>
impl<R> StructuralPartialEq for Reductors<R>
Auto Trait Implementations§
impl<R> Freeze for Reductors<R>where
R: Freeze,
impl<R> RefUnwindSafe for Reductors<R>where
R: RefUnwindSafe,
impl<R> Send for Reductors<R>where
R: Send,
impl<R> Sync for Reductors<R>where
R: Sync,
impl<R> Unpin for Reductors<R>where
R: Unpin,
impl<R> UnwindSafe for Reductors<R>where
R: UnwindSafe,
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