pub struct Bi<S, Out, K, Src, F, KF, PF, Sc>where
Sc: Score,{ /* private fields */ }Expand description
Symmetric self-join over projected rows with equal keys KF; produced by
Stream::join with equal(..).
Implementations§
Source§impl<S, Out, K, Src, F, KF, PF, Sc> Bi<S, Out, K, Src, F, KF, PF, Sc>
impl<S, Out, K, Src, F, KF, PF, Sc> Bi<S, Out, K, Src, F, KF, PF, Sc>
Sourcepub fn filter<P>(
self,
predicate: P,
) -> Bi<S, Out, K, Src, F, KF, AndBiFilter<PF, FnBiFilter<impl Fn(&S, &Out, &Out, usize, usize) -> bool + Send + Sync>>, Sc>
pub fn filter<P>( self, predicate: P, ) -> Bi<S, Out, K, Src, F, KF, AndBiFilter<PF, FnBiFilter<impl Fn(&S, &Out, &Out, usize, usize) -> bool + Send + Sync>>, Sc>
Keeps only pairs for which predicate returns true, after the existing filter.
Sourcepub fn penalize<W>(
self,
weight: W,
) -> BiBuilder<S, Out, K, Src, F, KF, PF, impl Fn(&Out, &Out) -> Sc + Send + Sync, Sc>
pub fn penalize<W>( self, weight: W, ) -> BiBuilder<S, Out, K, Src, F, KF, PF, impl Fn(&Out, &Out) -> Sc + Send + Sync, Sc>
Penalizes each match by weight.
weight is a fixed score, or a closure over the matched (&Out, &Out) pair returning one.
A fixed weight with a non-zero hard level marks the constraint hard; closures
are soft unless wrapped in hard_weight.
Sourcepub fn reward<W>(
self,
weight: W,
) -> BiBuilder<S, Out, K, Src, F, KF, PF, impl Fn(&Out, &Out) -> Sc + Send + Sync, Sc>
pub fn reward<W>( self, weight: W, ) -> BiBuilder<S, Out, K, Src, F, KF, PF, impl Fn(&Out, &Out) -> Sc + Send + Sync, Sc>
Rewards each match by weight.
weight is a fixed score, or a closure over the matched (&Out, &Out) pair returning one.
A fixed weight with a non-zero hard level marks the constraint hard; closures
are soft unless wrapped in hard_weight.
Auto Trait Implementations§
impl<S, Out, K, Src, F, KF, PF, Sc> Freeze for Bi<S, Out, K, Src, F, KF, PF, Sc>
impl<S, Out, K, Src, F, KF, PF, Sc> RefUnwindSafe for Bi<S, Out, K, Src, F, KF, PF, Sc>where
Src: RefUnwindSafe,
F: RefUnwindSafe,
KF: RefUnwindSafe,
PF: RefUnwindSafe,
PhantomData<(fn() -> S, fn() -> Out, fn() -> K, fn() -> Sc)>: RefUnwindSafe,
impl<S, Out, K, Src, F, KF, PF, Sc> Send for Bi<S, Out, K, Src, F, KF, PF, Sc>
impl<S, Out, K, Src, F, KF, PF, Sc> Sync for Bi<S, Out, K, Src, F, KF, PF, Sc>
impl<S, Out, K, Src, F, KF, PF, Sc> Unpin for Bi<S, Out, K, Src, F, KF, PF, Sc>
impl<S, Out, K, Src, F, KF, PF, Sc> UnsafeUnpin for Bi<S, Out, K, Src, F, KF, PF, Sc>where
Src: UnsafeUnpin,
F: UnsafeUnpin,
KF: UnsafeUnpin,
PF: UnsafeUnpin,
PhantomData<(fn() -> S, fn() -> Out, fn() -> K, fn() -> Sc)>: UnsafeUnpin,
impl<S, Out, K, Src, F, KF, PF, Sc> UnwindSafe for Bi<S, Out, K, Src, F, KF, PF, Sc>where
Src: UnwindSafe,
F: UnwindSafe,
KF: UnwindSafe,
PF: UnwindSafe,
PhantomData<(fn() -> S, fn() -> Out, fn() -> K, 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