Skip to main content

ComplementedGroupedBuilder

Struct ComplementedGroupedBuilder 

Source
pub struct ComplementedGroupedBuilder<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc>
where Sc: Score,
{ /* private fields */ }
Expand description

Builder holding a weighted complemented grouped projected constraint until named finalizes it.

Implementations§

Source§

impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc> ComplementedGroupedBuilder<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc>
where S: Send + Sync + 'static, Out: Send + Sync + 'static, B: Debug + Send + Sync + 'static, K: Clone + Eq + Hash + Send + Sync + 'static, Src: Source<S, Out> + 'static, EB: CollectionExtract<S, Item = B> + 'static, F: UniFilter<S, Out> + 'static, KA: Fn(&Out) -> Option<K> + Send + Sync + 'static, KB: Fn(&B) -> K + Send + Sync + Clone + '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, D: Fn(&B) -> R + Send + Sync + 'static, W: Fn(&K, &R) -> Sc + Send + Sync, Sc: Score + 'static,

Source

pub fn named( self, name: &str, ) -> SharedOperatorTerminal<S, ComplementNode<S, CollectionNode<S, EB>, GroupNode<FilterNode<SourceNode<S, Out, Src>, impl Fn(&S, &ProjectedRow<'_, Out>) -> bool + Send + Sync>, impl Fn(&ProjectedRow<'_, Out>) -> Option<K> + Send + Sync, ProjectedCollector<C, V, R, Acc>, Option<K>, Acc, V, R>, ViewEqualPlan<Option<K>, OptionalEntityKey<KB>, GroupKey>, impl Fn(&S, &Leaf<'_, B>) -> R + Send + Sync, R>, OptionalComplementAdapter<KB, K, R>, OperatorScorer<OptionalComplementWeight<W, KB>, 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, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc> Forget for ComplementedGroupedBuilder<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc>

§

impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc> Freeze for ComplementedGroupedBuilder<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc>
where Src: Freeze, EB: Freeze, F: Freeze, KA: Freeze, KB: Freeze, C: Freeze, D: Freeze, W: Freeze, PhantomData<(fn() -> S, fn() -> Out, fn() -> B, fn() -> K, fn() -> V, fn() -> R, fn() -> Acc, fn() -> Sc)>: Freeze,

§

impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc> Move for ComplementedGroupedBuilder<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc>

§

impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc> RefUnwindSafe for ComplementedGroupedBuilder<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc>
where Src: RefUnwindSafe, EB: RefUnwindSafe, F: RefUnwindSafe, KA: RefUnwindSafe, KB: RefUnwindSafe, C: RefUnwindSafe, D: RefUnwindSafe, W: RefUnwindSafe, PhantomData<(fn() -> S, fn() -> Out, fn() -> B, fn() -> K, fn() -> V, fn() -> R, fn() -> Acc, fn() -> Sc)>: RefUnwindSafe,

§

impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc> Send for ComplementedGroupedBuilder<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc>
where Src: Send, EB: Send, F: Send, KA: Send, KB: Send, C: Send, D: Send, W: Send, PhantomData<(fn() -> S, fn() -> Out, fn() -> B, fn() -> K, fn() -> V, fn() -> R, fn() -> Acc, fn() -> Sc)>: Send,

§

impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc> Sync for ComplementedGroupedBuilder<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc>
where Src: Sync, EB: Sync, F: Sync, KA: Sync, KB: Sync, C: Sync, D: Sync, W: Sync, PhantomData<(fn() -> S, fn() -> Out, fn() -> B, fn() -> K, fn() -> V, fn() -> R, fn() -> Acc, fn() -> Sc)>: Sync,

§

impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc> Unpin for ComplementedGroupedBuilder<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc>
where Src: Unpin, EB: Unpin, F: Unpin, KA: Unpin, KB: Unpin, C: Unpin, D: Unpin, W: Unpin, PhantomData<(fn() -> S, fn() -> Out, fn() -> B, fn() -> K, fn() -> V, fn() -> R, fn() -> Acc, fn() -> Sc)>: Unpin,

§

impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc> UnsafeUnpin for ComplementedGroupedBuilder<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc>
where Src: UnsafeUnpin, EB: UnsafeUnpin, F: UnsafeUnpin, KA: UnsafeUnpin, KB: UnsafeUnpin, C: UnsafeUnpin, D: UnsafeUnpin, W: UnsafeUnpin, PhantomData<(fn() -> S, fn() -> Out, fn() -> B, fn() -> K, fn() -> V, fn() -> R, fn() -> Acc, fn() -> Sc)>: UnsafeUnpin,

§

impl<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc> UnwindSafe for ComplementedGroupedBuilder<S, Out, B, K, Src, EB, F, KA, KB, C, V, R, Acc, D, W, Sc>
where Src: UnwindSafe, EB: UnwindSafe, F: UnwindSafe, KA: UnwindSafe, KB: UnwindSafe, C: UnwindSafe, D: UnwindSafe, W: UnwindSafe, PhantomData<(fn() -> S, fn() -> Out, fn() -> B, fn() -> K, fn() -> V, fn() -> R, fn() -> Acc, fn() -> Sc)>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.