Skip to main content

ProjectedComplementedGroupedConstraintStream

Struct ProjectedComplementedGroupedConstraintStream 

Source
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,

Source

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>
where W: for<'w> ConstraintWeight<(&'w K, &'w R), Sc> + Send + Sync,

Source

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>
where W: for<'w> ConstraintWeight<(&'w K, &'w R), Sc> + Send + Sync,

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>
where Src: Freeze, EB: Freeze, F: Freeze, KA: Freeze, KB: Freeze, C: Freeze, D: Freeze,

§

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>

§

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>
where Src: Send, EB: Send, F: Send, KA: Send, KB: Send, C: Send, D: Send,

§

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>
where Src: Sync, EB: Sync, F: Sync, KA: Sync, KB: Sync, C: Sync, D: Sync,

§

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>
where Src: Unpin, EB: Unpin, F: Unpin, KA: Unpin, KB: Unpin, C: Unpin, D: Unpin,

§

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>

§

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>

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.