pub struct CooperativeState<StA, StB, B: Backend> {
pub base: CoEAState<StA, StB>,
/* private fields */
}Expand description
Joint state for CooperativeCoEA: the shared CoEAState plus the
per-population representative archives used by
RepresentativePolicy::Archive.
Fields§
§base: CoEAState<StA, StB>Shared best/mean/generation trackers and inner strategy states.
Trait Implementations§
Source§impl<StA: Clone, StB: Clone, B: Clone + Backend> Clone for CooperativeState<StA, StB, B>
impl<StA: Clone, StB: Clone, B: Clone + Backend> Clone for CooperativeState<StA, StB, B>
Source§fn clone(&self) -> CooperativeState<StA, StB, B>
fn clone(&self) -> CooperativeState<StA, StB, B>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<StA, StB, B> Freeze for CooperativeState<StA, StB, B>where
StA: Freeze,
StB: Freeze,
<B as BackendTypes>::FloatTensorPrimitive: Freeze,
<B as BackendTypes>::QuantizedTensorPrimitive: Freeze,
impl<StA, StB, B> RefUnwindSafe for CooperativeState<StA, StB, B>where
StA: RefUnwindSafe,
StB: RefUnwindSafe,
<B as BackendTypes>::FloatTensorPrimitive: RefUnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<StA, StB, B> Send for CooperativeState<StA, StB, B>
impl<StA, StB, B> Sync for CooperativeState<StA, StB, B>
impl<StA, StB, B> Unpin for CooperativeState<StA, StB, B>where
StA: Unpin,
StB: Unpin,
<B as BackendTypes>::FloatTensorPrimitive: Unpin,
<B as BackendTypes>::QuantizedTensorPrimitive: Unpin,
impl<StA, StB, B> UnsafeUnpin for CooperativeState<StA, StB, B>where
StA: UnsafeUnpin,
StB: UnsafeUnpin,
<B as BackendTypes>::FloatTensorPrimitive: UnsafeUnpin,
<B as BackendTypes>::QuantizedTensorPrimitive: UnsafeUnpin,
impl<StA, StB, B> UnwindSafe for CooperativeState<StA, StB, B>where
StA: UnwindSafe,
StB: UnwindSafe,
<B as BackendTypes>::FloatTensorPrimitive: UnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: 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<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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