pub struct GroupedBuilder<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc>where
Sc: Score,{ /* private fields */ }Expand description
Builder holding a weighted grouped projected constraint until
named finalizes it.
Implementations§
Source§impl<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc> GroupedBuilder<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc>where
S: Send + Sync + 'static,
Out: Send + Sync + 'static,
K: Clone + Eq + Hash + Send + Sync + 'static,
Src: Source<S, Out> + 'static,
F: UniFilter<S, Out> + 'static,
KF: Fn(&Out) -> K + Send + Sync + 'static,
C: for<'i> Collector<&'i Out, Value = V, Result = R, Accumulator = Acc> + Send + Sync + 'static,
V: Send + Sync + 'static,
R: Send + Sync + 'static,
Acc: Accumulator<V, R> + Send + Sync + 'static,
W: Fn(&K, &R) -> Sc + Send + Sync,
Sc: Score + 'static,
impl<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc> GroupedBuilder<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc>where
S: Send + Sync + 'static,
Out: Send + Sync + 'static,
K: Clone + Eq + Hash + Send + Sync + 'static,
Src: Source<S, Out> + 'static,
F: UniFilter<S, Out> + 'static,
KF: Fn(&Out) -> K + Send + Sync + 'static,
C: for<'i> Collector<&'i Out, Value = V, Result = R, Accumulator = Acc> + Send + Sync + 'static,
V: Send + Sync + 'static,
R: Send + Sync + 'static,
Acc: Accumulator<V, R> + Send + Sync + 'static,
W: Fn(&K, &R) -> Sc + Send + Sync,
Sc: Score + 'static,
Sourcepub fn named(
self,
name: &str,
) -> SharedOperatorTerminal<S, GroupNode<FilterNode<SourceNode<S, Out, Src>, impl Fn(&S, &ProjectedRow<'_, Out>) -> bool + Send + Sync>, impl Fn(&ProjectedRow<'_, Out>) -> K + Send + Sync, ProjectedCollector<C, V, R, Acc>, K, Acc, V, R>, GroupAdapter<K, R>, OperatorScorer<GroupWeight<W>, Sc>, Sc>
pub fn named( self, name: &str, ) -> SharedOperatorTerminal<S, GroupNode<FilterNode<SourceNode<S, Out, Src>, impl Fn(&S, &ProjectedRow<'_, Out>) -> bool + Send + Sync>, impl Fn(&ProjectedRow<'_, Out>) -> K + Send + Sync, ProjectedCollector<C, V, R, Acc>, K, Acc, V, R>, GroupAdapter<K, R>, OperatorScorer<GroupWeight<W>, Sc>, Sc>
Names the constraint and builds it as a
SharedOperatorTerminal,
to which further terminals over the same grouped node can be appended.
Auto Trait Implementations§
impl<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc> Forget for GroupedBuilder<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc>
impl<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc> Freeze for GroupedBuilder<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc>
impl<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc> RefUnwindSafe for GroupedBuilder<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc>where
Src: RefUnwindSafe,
F: RefUnwindSafe,
KF: RefUnwindSafe,
C: RefUnwindSafe,
W: RefUnwindSafe,
PhantomData<(fn() -> S, fn() -> Out, fn() -> K, fn() -> V, fn() -> R, fn() -> Acc, fn() -> Sc)>: RefUnwindSafe,
impl<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc> Send for GroupedBuilder<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc>
impl<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc> Sync for GroupedBuilder<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc>
impl<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc> Unpin for GroupedBuilder<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc>
impl<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc> UnsafeUnpin for GroupedBuilder<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc>where
Src: UnsafeUnpin,
F: UnsafeUnpin,
KF: UnsafeUnpin,
C: UnsafeUnpin,
W: UnsafeUnpin,
PhantomData<(fn() -> S, fn() -> Out, fn() -> K, fn() -> V, fn() -> R, fn() -> Acc, fn() -> Sc)>: UnsafeUnpin,
impl<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc> UnwindSafe for GroupedBuilder<S, Out, K, Src, F, KF, C, V, R, Acc, W, Sc>where
Src: UnwindSafe,
F: UnwindSafe,
KF: UnwindSafe,
C: UnwindSafe,
W: UnwindSafe,
PhantomData<(fn() -> S, fn() -> Out, fn() -> K, fn() -> V, fn() -> R, fn() -> Acc, fn() -> Sc)>: 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