pub struct ProjectedComplementedGroupedConstraintStream<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc>where
Sc: Score,{ /* private fields */ }Implementations§
Source§impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc> ProjectedComplementedGroupedConstraintStream<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc>where
S: Send + Sync + 'static,
Out: Send + Sync + 'static,
B: Send + Sync + 'static,
K: Eq + Hash + Send + Sync + 'static,
Src: ProjectedSource<S, Out>,
EB: CollectionExtract<S, Item = B>,
F: UniFilter<S, Out>,
KA: Fn(&Out) -> Option<K> + Send + Sync,
KB: Fn(&B) -> K + Send + Sync,
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,
D: Fn(&B) -> R + Send + Sync,
Sc: Score + 'static,
impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc> ProjectedComplementedGroupedConstraintStream<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc>where
S: Send + Sync + 'static,
Out: Send + Sync + 'static,
B: Send + Sync + 'static,
K: Eq + Hash + Send + Sync + 'static,
Src: ProjectedSource<S, Out>,
EB: CollectionExtract<S, Item = B>,
F: UniFilter<S, Out>,
KA: Fn(&Out) -> Option<K> + Send + Sync,
KB: Fn(&B) -> K + Send + Sync,
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,
D: Fn(&B) -> R + Send + Sync,
Sc: Score + 'static,
pub fn penalize<W>( self, weight: W, ) -> ProjectedComplementedGroupedConstraintBuilder<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, impl Fn(&K, &R) -> Sc + Send + Sync, Sc>
pub fn reward<W>( self, weight: W, ) -> ProjectedComplementedGroupedConstraintBuilder<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, impl Fn(&K, &R) -> Sc + Send + Sync, Sc>
Auto Trait Implementations§
impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc> Freeze for ProjectedComplementedGroupedConstraintStream<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc>
impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc> RefUnwindSafe for ProjectedComplementedGroupedConstraintStream<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc>where
Src: RefUnwindSafe,
EB: RefUnwindSafe,
F: RefUnwindSafe,
KA: RefUnwindSafe,
KB: RefUnwindSafe,
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc> Send for ProjectedComplementedGroupedConstraintStream<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc>
impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc> Sync for ProjectedComplementedGroupedConstraintStream<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc>
impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc> Unpin for ProjectedComplementedGroupedConstraintStream<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc>
impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc> UnsafeUnpin for ProjectedComplementedGroupedConstraintStream<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc>where
Src: UnsafeUnpin,
EB: UnsafeUnpin,
F: UnsafeUnpin,
KA: UnsafeUnpin,
KB: UnsafeUnpin,
C: UnsafeUnpin,
D: UnsafeUnpin,
impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc> UnwindSafe for ProjectedComplementedGroupedConstraintStream<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, Sc>where
Src: UnwindSafe,
EB: UnwindSafe,
F: UnwindSafe,
KA: UnwindSafe,
KB: UnwindSafe,
C: UnwindSafe,
D: 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