pub struct GroupAdapter<K, R>(/* private fields */);Expand description
Adapts a (&K, &R) group weight to rows of a GroupNode with key K and
collector result R.
Implementations§
Source§impl<K, R> GroupAdapter<K, R>
impl<K, R> GroupAdapter<K, R>
Trait Implementations§
Source§impl<S, I, F, C, K, Acc, V, R, W, Sc> AdaptWeight<S, GroupNode<I, F, C, K, Acc, V, R>, W, Sc> for GroupAdapter<K, R>where
S: 'static,
I: Operator<S>,
F: for<'a> Fn(&I::View<'a>) -> K + Send + Sync + 'static,
C: for<'a> Collector<I::View<'a>, Value = V, Result = R, Accumulator = Acc> + 'static,
K: Eq + Hash + Clone + Send + Sync + 'static,
Acc: Accumulator<V, R> + 'static,
V: Send + Sync + 'static,
R: Send + Sync + 'static,
W: for<'a> ConstraintWeight<(&'a K, &'a R), Sc> + Send + Sync,
Sc: Score,
impl<S, I, F, C, K, Acc, V, R, W, Sc> AdaptWeight<S, GroupNode<I, F, C, K, Acc, V, R>, W, Sc> for GroupAdapter<K, R>where
S: 'static,
I: Operator<S>,
F: for<'a> Fn(&I::View<'a>) -> K + Send + Sync + 'static,
C: for<'a> Collector<I::View<'a>, Value = V, Result = R, Accumulator = Acc> + 'static,
K: Eq + Hash + Clone + Send + Sync + 'static,
Acc: Accumulator<V, R> + 'static,
V: Send + Sync + 'static,
R: Send + Sync + 'static,
W: for<'a> ConstraintWeight<(&'a K, &'a R), Sc> + Send + Sync,
Sc: Score,
Auto Trait Implementations§
impl<K, R> Freeze for GroupAdapter<K, R>
impl<K, R> RefUnwindSafe for GroupAdapter<K, R>
impl<K, R> Send for GroupAdapter<K, R>
impl<K, R> Sync for GroupAdapter<K, R>
impl<K, R> Unpin for GroupAdapter<K, R>
impl<K, R> UnsafeUnpin for GroupAdapter<K, R>
impl<K, R> UnwindSafe for GroupAdapter<K, R>
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