Skip to main content

OrderedConstraintSetChain

Struct OrderedConstraintSetChain 

Source
pub struct OrderedConstraintSetChain<Left, Right> { /* private fields */ }

Implementations§

Source§

impl<Left, Right> OrderedConstraintSetChain<Left, Right>

Source

pub fn new(left: Left, right: Right, order: Vec<ConstraintSetSource>) -> Self

Trait Implementations§

Source§

impl<S, Sc, Left, Right> ConstraintSet<S, Sc> for OrderedConstraintSetChain<Left, Right>
where S: Send + Sync, Sc: Score, Left: ConstraintSet<S, Sc>, Right: ConstraintSet<S, Sc>,

Source§

fn evaluate_all(&self, solution: &S) -> Sc

Source§

fn constraint_count(&self) -> usize

Source§

fn evaluate_each<'a>(&'a self, solution: &S) -> Vec<ConstraintResult<'a, Sc>>

Source§

fn evaluate_detailed<'a>( &'a self, solution: &S, ) -> Vec<ConstraintAnalysis<'a, Sc>>

Source§

fn initialize_all(&mut self, solution: &S) -> Sc

Source§

fn on_insert_all( &mut self, solution: &S, entity_index: usize, descriptor_index: usize, ) -> Sc

Source§

fn on_retract_all( &mut self, solution: &S, entity_index: usize, descriptor_index: usize, ) -> Sc

Source§

fn reset_all(&mut self)

Source§

fn constraint_metadata(&self) -> Vec<ConstraintMetadata<'_>>

Auto Trait Implementations§

§

impl<Left, Right> Freeze for OrderedConstraintSetChain<Left, Right>
where Left: Freeze, Right: Freeze,

§

impl<Left, Right> RefUnwindSafe for OrderedConstraintSetChain<Left, Right>
where Left: RefUnwindSafe, Right: RefUnwindSafe,

§

impl<Left, Right> Send for OrderedConstraintSetChain<Left, Right>
where Left: Send, Right: Send,

§

impl<Left, Right> Sync for OrderedConstraintSetChain<Left, Right>
where Left: Sync, Right: Sync,

§

impl<Left, Right> Unpin for OrderedConstraintSetChain<Left, Right>
where Left: Unpin, Right: Unpin,

§

impl<Left, Right> UnsafeUnpin for OrderedConstraintSetChain<Left, Right>
where Left: UnsafeUnpin, Right: UnsafeUnpin,

§

impl<Left, Right> UnwindSafe for OrderedConstraintSetChain<Left, Right>
where Left: UnwindSafe, Right: 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 = 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.