pub struct ForEachReducer<R, PS, PA, CS, CA, Id> {
pub get_vec: fn(&mut PS) -> &mut IdentifiedVec<Id, CS>,
pub embed: fn(Id, CA) -> PA,
pub extract: fn(PA) -> Option<(Id, CA)>,
pub extract_remove: fn(PA) -> Option<Id>,
pub cancel_id: fn(Id) -> EffectId,
pub child: R,
}Expand description
Run a child reducer for each element in an IdentifiedVec.
Fields§
§get_vec: fn(&mut PS) -> &mut IdentifiedVec<Id, CS>§embed: fn(Id, CA) -> PA§extract: fn(PA) -> Option<(Id, CA)>§extract_remove: fn(PA) -> Option<Id>§cancel_id: fn(Id) -> EffectId§child: RImplementations§
Trait Implementations§
Source§impl<R: Clone, PS: Clone, PA: Clone, CS: Clone, CA: Clone, Id: Clone> Clone for ForEachReducer<R, PS, PA, CS, CA, Id>
impl<R: Clone, PS: Clone, PA: Clone, CS: Clone, CA: Clone, Id: Clone> Clone for ForEachReducer<R, PS, PA, CS, CA, Id>
Source§fn clone(&self) -> ForEachReducer<R, PS, PA, CS, CA, Id>
fn clone(&self) -> ForEachReducer<R, PS, PA, CS, CA, Id>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R: Debug, PS: Debug, PA: Debug, CS: Debug, CA: Debug, Id: Debug> Debug for ForEachReducer<R, PS, PA, CS, CA, Id>
impl<R: Debug, PS: Debug, PA: Debug, CS: Debug, CA: Debug, Id: Debug> Debug for ForEachReducer<R, PS, PA, CS, CA, Id>
Source§impl<R, PS, PA, CS, CA, Id> Reducer for ForEachReducer<R, PS, PA, CS, CA, Id>
impl<R, PS, PA, CS, CA, Id> Reducer for ForEachReducer<R, PS, PA, CS, CA, Id>
Auto Trait Implementations§
impl<R, PS, PA, CS, CA, Id> Freeze for ForEachReducer<R, PS, PA, CS, CA, Id>where
R: Freeze,
impl<R, PS, PA, CS, CA, Id> RefUnwindSafe for ForEachReducer<R, PS, PA, CS, CA, Id>where
R: RefUnwindSafe,
impl<R, PS, PA, CS, CA, Id> Send for ForEachReducer<R, PS, PA, CS, CA, Id>where
R: Send,
impl<R, PS, PA, CS, CA, Id> Sync for ForEachReducer<R, PS, PA, CS, CA, Id>where
R: Sync,
impl<R, PS, PA, CS, CA, Id> Unpin for ForEachReducer<R, PS, PA, CS, CA, Id>where
R: Unpin,
impl<R, PS, PA, CS, CA, Id> UnsafeUnpin for ForEachReducer<R, PS, PA, CS, CA, Id>where
R: UnsafeUnpin,
impl<R, PS, PA, CS, CA, Id> UnwindSafe for ForEachReducer<R, PS, PA, CS, CA, Id>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