Skip to main content

ExistsConstraintStream

Struct ExistsConstraintStream 

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

Implementations§

Source§

impl<S, A, L, R, C, Sc> ExistsConstraintStream<S, A, L, R, C, Sc>
where S: Send + Sync + 'static, A: Clone + Send + Sync + 'static, for<'a> L: Operator<S> + Operator<S, View<'a> = Leaf<'a, A>>, C: CompileCondition, Sc: Score + 'static,

Source

pub fn penalize<W>( self, weight: W, ) -> ExistsConstraintBuilder<S, A, L, R, C, 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, L, R, C, 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, L, R, C, Sc: Score> Debug for ExistsConstraintStream<S, A, L, R, C, Sc>
where C: CompileCondition,

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

§

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