Struct genevo::termination::combinator::Or
source · [−]pub struct Or<T1, T2, A> where
T1: Termination<A>,
T2: Termination<A>,
A: Algorithm, { /* private fields */ }
Implementations
sourceimpl<T1, T2, A> Or<T1, T2, A> where
T1: Termination<A>,
T2: Termination<A>,
A: Algorithm,
impl<T1, T2, A> Or<T1, T2, A> where
T1: Termination<A>,
T2: Termination<A>,
A: Algorithm,
pub fn new(condition1: T1, condition2: T2) -> Self
pub fn condition1(&self) -> &T1
pub fn condition2(&self) -> &T2
Trait Implementations
sourceimpl<T1: Clone, T2: Clone, A: Clone> Clone for Or<T1, T2, A> where
T1: Termination<A>,
T2: Termination<A>,
A: Algorithm,
impl<T1: Clone, T2: Clone, A: Clone> Clone for Or<T1, T2, A> where
T1: Termination<A>,
T2: Termination<A>,
A: Algorithm,
sourceimpl<T1: Debug, T2: Debug, A: Debug> Debug for Or<T1, T2, A> where
T1: Termination<A>,
T2: Termination<A>,
A: Algorithm,
impl<T1: Debug, T2: Debug, A: Debug> Debug for Or<T1, T2, A> where
T1: Termination<A>,
T2: Termination<A>,
A: Algorithm,
sourceimpl<T1: PartialEq, T2: PartialEq, A: PartialEq> PartialEq<Or<T1, T2, A>> for Or<T1, T2, A> where
T1: Termination<A>,
T2: Termination<A>,
A: Algorithm,
impl<T1: PartialEq, T2: PartialEq, A: PartialEq> PartialEq<Or<T1, T2, A>> for Or<T1, T2, A> where
T1: Termination<A>,
T2: Termination<A>,
A: Algorithm,
sourceimpl<T1, T2, A> Termination<A> for Or<T1, T2, A> where
T1: Termination<A>,
T2: Termination<A>,
A: Algorithm,
impl<T1, T2, A> Termination<A> for Or<T1, T2, A> where
T1: Termination<A>,
T2: Termination<A>,
A: Algorithm,
impl<T1, T2, A> StructuralPartialEq for Or<T1, T2, A> where
T1: Termination<A>,
T2: Termination<A>,
A: Algorithm,
Auto Trait Implementations
impl<T1, T2, A> RefUnwindSafe for Or<T1, T2, A> where
A: RefUnwindSafe,
T1: RefUnwindSafe,
T2: RefUnwindSafe,
impl<T1, T2, A> Send for Or<T1, T2, A> where
A: Send,
T1: Send,
T2: Send,
impl<T1, T2, A> Sync for Or<T1, T2, A> where
A: Sync,
T1: Sync,
T2: Sync,
impl<T1, T2, A> Unpin for Or<T1, T2, A> where
A: Unpin,
T1: Unpin,
T2: Unpin,
impl<T1, T2, A> UnwindSafe for Or<T1, T2, A> where
A: UnwindSafe,
T1: UnwindSafe,
T2: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more