Skip to main content

ExistsConstraintStream

Struct ExistsConstraintStream 

Source
pub struct ExistsConstraintStream<S, A, K, L, R, LK, RK, Sc>
where Sc: Score,
{ /* private fields */ }

Implementations§

Source§

impl<S, A, K, L, R, LK, RK, Sc> ExistsConstraintStream<S, A, K, L, R, LK, RK, Sc>
where S: Send + Sync + 'static, A: Clone + Send + Sync + 'static, K: Eq + Hash + Clone + Send + Sync + 'static, L: Operator<S>, for<'a> LK: ViewKey<L::View<'a>, Key = K>, R: Operator<S>, for<'a> RK: RightKeySet<R::View<'a>, Key = K>, Sc: Score + 'static,

Source

pub fn penalize<W>( self, weight: W, ) -> ExistsConstraintBuilder<S, A, K, L, R, LK, RK, impl for<'a> Fn(&S, &Leaf<'a, A>) -> Sc + Send + Sync, Sc>
where W: for<'w> ConstraintWeight<(&'w A,), Sc> + Send + Sync,

Source

pub fn reward<W>( self, weight: W, ) -> ExistsConstraintBuilder<S, A, K, L, R, LK, RK, impl for<'a> Fn(&S, &Leaf<'a, A>) -> Sc + Send + Sync, Sc>
where W: for<'w> ConstraintWeight<(&'w A,), Sc> + Send + Sync,

Trait Implementations§

Source§

impl<S, A, K, L, R, LK, RK, Sc: Score> Debug for ExistsConstraintStream<S, A, K, L, R, LK, RK, Sc>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<S, A, K, L, R, LK, RK, Sc> Freeze for ExistsConstraintStream<S, A, K, L, R, LK, RK, Sc>
where L: Freeze, R: Freeze, LK: Freeze, RK: Freeze, PhantomData<(fn() -> S, fn() -> A, fn() -> K, fn() -> Sc)>: Freeze,

§

impl<S, A, K, L, R, LK, RK, Sc> RefUnwindSafe for ExistsConstraintStream<S, A, K, L, R, LK, RK, Sc>
where L: RefUnwindSafe, R: RefUnwindSafe, LK: RefUnwindSafe, RK: RefUnwindSafe, PhantomData<(fn() -> S, fn() -> A, fn() -> K, fn() -> Sc)>: RefUnwindSafe,

§

impl<S, A, K, L, R, LK, RK, Sc> Send for ExistsConstraintStream<S, A, K, L, R, LK, RK, Sc>
where L: Send, R: Send, LK: Send, RK: Send, PhantomData<(fn() -> S, fn() -> A, fn() -> K, fn() -> Sc)>: Send,

§

impl<S, A, K, L, R, LK, RK, Sc> Sync for ExistsConstraintStream<S, A, K, L, R, LK, RK, Sc>
where L: Sync, R: Sync, LK: Sync, RK: Sync, PhantomData<(fn() -> S, fn() -> A, fn() -> K, fn() -> Sc)>: Sync,

§

impl<S, A, K, L, R, LK, RK, Sc> Unpin for ExistsConstraintStream<S, A, K, L, R, LK, RK, Sc>
where L: Unpin, R: Unpin, LK: Unpin, RK: Unpin, PhantomData<(fn() -> S, fn() -> A, fn() -> K, fn() -> Sc)>: Unpin,

§

impl<S, A, K, L, R, LK, RK, Sc> UnsafeUnpin for ExistsConstraintStream<S, A, K, L, R, LK, RK, Sc>
where L: UnsafeUnpin, R: UnsafeUnpin, LK: UnsafeUnpin, RK: UnsafeUnpin, PhantomData<(fn() -> S, fn() -> A, fn() -> K, fn() -> Sc)>: UnsafeUnpin,

§

impl<S, A, K, L, R, LK, RK, Sc> UnwindSafe for ExistsConstraintStream<S, A, K, L, R, LK, RK, Sc>
where L: UnwindSafe, R: UnwindSafe, LK: UnwindSafe, RK: UnwindSafe, PhantomData<(fn() -> S, fn() -> A, fn() -> K, 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.