pub struct InputOrder<Var> { /* private fields */ }Expand description
A VariableSelector which selects the first variable which is not fixed given the order in
the provided list.
Implementations§
Trait Implementations§
source§impl<Var: Debug> Debug for InputOrder<Var>
impl<Var: Debug> Debug for InputOrder<Var>
source§impl VariableSelector<DomainId> for InputOrder<DomainId>
impl VariableSelector<DomainId> for InputOrder<DomainId>
source§fn select_variable(
&mut self,
context: &SelectionContext<'_>,
) -> Option<DomainId>
fn select_variable( &mut self, context: &SelectionContext<'_>, ) -> Option<DomainId>
Determines which variable to select next if there are any left to branch on.
Should only return
None when all variables which have been passed to the
VariableSelector have been assigned. Otherwise it should return the variable to
branch on next.source§fn on_conflict(&mut self)
fn on_conflict(&mut self)
A function which is called after a conflict has been found and processed but (currently)
does not provide any additional information.
source§fn on_unassign_literal(&mut self, _literal: Literal)
fn on_unassign_literal(&mut self, _literal: Literal)
source§fn on_unassign_integer(&mut self, _variable: DomainId, _value: i32)
fn on_unassign_integer(&mut self, _variable: DomainId, _value: i32)
source§fn on_appearance_in_conflict_literal(&mut self, _literal: Literal)
fn on_appearance_in_conflict_literal(&mut self, _literal: Literal)
A function which is called when a
Literal appears in a conflict during conflict
analysis.source§fn on_appearance_in_conflict_integer(&mut self, _variable: DomainId)
fn on_appearance_in_conflict_integer(&mut self, _variable: DomainId)
A function which is called when a variable appears in a conflict during conflict analysis.
source§fn is_restart_pointless(&mut self) -> bool
fn is_restart_pointless(&mut self) -> bool
This method returns whether a restart is currently pointless for the
VariableSelector. Read moresource§impl VariableSelector<PropositionalVariable> for InputOrder<PropositionalVariable>
impl VariableSelector<PropositionalVariable> for InputOrder<PropositionalVariable>
source§fn select_variable(
&mut self,
context: &SelectionContext<'_>,
) -> Option<PropositionalVariable>
fn select_variable( &mut self, context: &SelectionContext<'_>, ) -> Option<PropositionalVariable>
Determines which variable to select next if there are any left to branch on.
Should only return
None when all variables which have been passed to the
VariableSelector have been assigned. Otherwise it should return the variable to
branch on next.source§fn on_conflict(&mut self)
fn on_conflict(&mut self)
A function which is called after a conflict has been found and processed but (currently)
does not provide any additional information.
source§fn on_unassign_literal(&mut self, _literal: Literal)
fn on_unassign_literal(&mut self, _literal: Literal)
source§fn on_unassign_integer(&mut self, _variable: DomainId, _value: i32)
fn on_unassign_integer(&mut self, _variable: DomainId, _value: i32)
source§fn on_appearance_in_conflict_literal(&mut self, _literal: Literal)
fn on_appearance_in_conflict_literal(&mut self, _literal: Literal)
A function which is called when a
Literal appears in a conflict during conflict
analysis.source§fn on_appearance_in_conflict_integer(&mut self, _variable: DomainId)
fn on_appearance_in_conflict_integer(&mut self, _variable: DomainId)
A function which is called when a variable appears in a conflict during conflict analysis.
source§fn is_restart_pointless(&mut self) -> bool
fn is_restart_pointless(&mut self) -> bool
This method returns whether a restart is currently pointless for the
VariableSelector. Read moreAuto Trait Implementations§
impl<Var> Freeze for InputOrder<Var>
impl<Var> RefUnwindSafe for InputOrder<Var>where
Var: RefUnwindSafe,
impl<Var> Send for InputOrder<Var>where
Var: Send,
impl<Var> Sync for InputOrder<Var>where
Var: Sync,
impl<Var> Unpin for InputOrder<Var>where
Var: Unpin,
impl<Var> UnwindSafe for InputOrder<Var>where
Var: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more