Struct sudoku_variants::solver::strategy::impls::CompositeStrategy [−][src]
A Strategy which uses two strategies by first applying one and then the other on the output of the first one. If any child changed the state, this strategy is defined to have changed the state aswell.
Implementations
impl<S1: Strategy, S2: Strategy> CompositeStrategy<S1, S2>
[src]
pub fn new(s1: S1, s2: S2) -> CompositeStrategy<S1, S2>
[src]
Creates a new composite strategy from the two children strategies.
Arguments
s1
: The strategy which is applied first.s2
: The strategy which is applied second.
Trait Implementations
impl<S1: Strategy + Clone, S2: Strategy + Clone> Clone for CompositeStrategy<S1, S2>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S1: Strategy, S2: Strategy> Strategy for CompositeStrategy<S1, S2>
[src]
fn apply(&self, sudoku_info: &mut SudokuInfo<impl Constraint + Clone>) -> bool
[src]
Auto Trait Implementations
impl<S1, S2> RefUnwindSafe for CompositeStrategy<S1, S2> where
S1: RefUnwindSafe,
S2: RefUnwindSafe,
S1: RefUnwindSafe,
S2: RefUnwindSafe,
impl<S1, S2> Send for CompositeStrategy<S1, S2> where
S1: Send,
S2: Send,
S1: Send,
S2: Send,
impl<S1, S2> Sync for CompositeStrategy<S1, S2> where
S1: Sync,
S2: Sync,
S1: Sync,
S2: Sync,
impl<S1, S2> Unpin for CompositeStrategy<S1, S2> where
S1: Unpin,
S2: Unpin,
S1: Unpin,
S2: Unpin,
impl<S1, S2> UnwindSafe for CompositeStrategy<S1, S2> where
S1: UnwindSafe,
S2: UnwindSafe,
S1: UnwindSafe,
S2: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,