pub struct Combinator<T1, T2> { /* private fields */ }Expand description
A TerminationCondition which triggers when one of two given TerminationConditions
triggers.
Implementations§
source§impl<T1, T2> Combinator<T1, T2>
impl<T1, T2> Combinator<T1, T2>
sourcepub fn new(t1: T1, t2: T2) -> Self
pub fn new(t1: T1, t2: T2) -> Self
Combine two TerminationConditions into one.
Trait Implementations§
source§impl<T1: Clone, T2: Clone> Clone for Combinator<T1, T2>
impl<T1: Clone, T2: Clone> Clone for Combinator<T1, T2>
source§fn clone(&self) -> Combinator<T1, T2>
fn clone(&self) -> Combinator<T1, T2>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T1: TerminationCondition, T2: TerminationCondition> TerminationCondition for Combinator<T1, T2>
impl<T1: TerminationCondition, T2: TerminationCondition> TerminationCondition for Combinator<T1, T2>
source§fn should_stop(&mut self) -> bool
fn should_stop(&mut self) -> bool
Returns
true when the solver should stop, false otherwise.impl<T1: Copy, T2: Copy> Copy for Combinator<T1, T2>
Auto Trait Implementations§
impl<T1, T2> Freeze for Combinator<T1, T2>
impl<T1, T2> RefUnwindSafe for Combinator<T1, T2>where
T1: RefUnwindSafe,
T2: RefUnwindSafe,
impl<T1, T2> Send for Combinator<T1, T2>
impl<T1, T2> Sync for Combinator<T1, T2>
impl<T1, T2> Unpin for Combinator<T1, T2>
impl<T1, T2> UnwindSafe for Combinator<T1, T2>where
T1: UnwindSafe,
T2: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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