pub struct SwarmState {
pub iteration: usize,
pub global_best: Option<Solution>,
pub convergence: f64,
}Expand description
Swarm state
Fields§
§iteration: usize§global_best: Option<Solution>§convergence: f64Trait Implementations§
Source§impl Clone for SwarmState
impl Clone for SwarmState
Source§fn clone(&self) -> SwarmState
fn clone(&self) -> SwarmState
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SwarmState
impl RefUnwindSafe for SwarmState
impl Send for SwarmState
impl Sync for SwarmState
impl Unpin for SwarmState
impl UnwindSafe for SwarmState
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