pub struct SwarmAgent {
pub id: Uuid,
pub position: Vector3,
pub velocity: Vector3,
pub fitness: f64,
pub memory: Vec<f64>,
}Expand description
Individual swarm agent
Fields§
§id: Uuid§position: Vector3§velocity: Vector3§fitness: f64§memory: Vec<f64>Trait Implementations§
Source§impl Clone for SwarmAgent
impl Clone for SwarmAgent
Source§fn clone(&self) -> SwarmAgent
fn clone(&self) -> SwarmAgent
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 SwarmAgent
impl RefUnwindSafe for SwarmAgent
impl Send for SwarmAgent
impl Sync for SwarmAgent
impl Unpin for SwarmAgent
impl UnwindSafe for SwarmAgent
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