[][src]Struct genevo::termination::combinator::And

pub struct And<T1, T2, A> where
    T1: Termination<A>,
    T2: Termination<A>,
    A: Algorithm
{ /* fields omitted */ }

Methods

impl<T1, T2, A> And<T1, T2, A> where
    T1: Termination<A>,
    T2: Termination<A>,
    A: Algorithm
[src]

pub fn new(condition1: T1, condition2: T2) -> Self[src]

pub fn condition1(&self) -> &T1[src]

pub fn condition2(&self) -> &T2[src]

Trait Implementations

impl<T1, T2, A> Termination<A> for And<T1, T2, A> where
    T1: Termination<A>,
    T2: Termination<A>,
    A: Algorithm
[src]

fn reset(&mut self)[src]

Resets the state of this Termination condition. This function is called on each Termination instance when the simulation is reset. Read more

impl<T1: PartialEq, T2: PartialEq, A: PartialEq> PartialEq<And<T1, T2, A>> for And<T1, T2, A> where
    T1: Termination<A>,
    T2: Termination<A>,
    A: Algorithm
[src]

impl<T1: Clone, T2: Clone, A: Clone> Clone for And<T1, T2, A> where
    T1: Termination<A>,
    T2: Termination<A>,
    A: Algorithm
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T1: Debug, T2: Debug, A: Debug> Debug for And<T1, T2, A> where
    T1: Termination<A>,
    T2: Termination<A>,
    A: Algorithm
[src]

Auto Trait Implementations

impl<T1, T2, A> Send for And<T1, T2, A> where
    A: Send,
    T1: Send,
    T2: Send

impl<T1, T2, A> Sync for And<T1, T2, A> where
    A: Sync,
    T1: Sync,
    T2: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]