pub enum Operation<T> {
Map(Box<dyn Fn(&T) -> T + Send + Sync>),
Filter(Box<dyn Fn(&T) -> bool + Send + Sync>),
Take(usize),
Skip(usize),
Reverse,
}Expand description
Represents a synchronous operation in the chain.
Variants§
Map(Box<dyn Fn(&T) -> T + Send + Sync>)
Map operation
Filter(Box<dyn Fn(&T) -> bool + Send + Sync>)
Filter operation
Take(usize)
Take operation
Skip(usize)
Skip operation
Reverse
Reverse operation
Auto Trait Implementations§
impl<T> Freeze for Operation<T>
impl<T> !RefUnwindSafe for Operation<T>
impl<T> Send for Operation<T>
impl<T> Sync for Operation<T>
impl<T> Unpin for Operation<T>
impl<T> !UnwindSafe for Operation<T>
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