pub struct ColonySnapshot {
pub tick: Tick,
pub agents: Vec<AgentSnapshot>,
pub nodes: Vec<NodeSnapshot>,
pub edges: Vec<EdgeSnapshot>,
pub stats: ColonyStats,
}Expand description
A complete serializable snapshot of the colony at a point in time.
Fields§
§tick: Tick§agents: Vec<AgentSnapshot>§nodes: Vec<NodeSnapshot>§edges: Vec<EdgeSnapshot>§stats: ColonyStatsTrait Implementations§
Source§impl Clone for ColonySnapshot
impl Clone for ColonySnapshot
Source§fn clone(&self) -> ColonySnapshot
fn clone(&self) -> ColonySnapshot
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 moreSource§impl Debug for ColonySnapshot
impl Debug for ColonySnapshot
Auto Trait Implementations§
impl Freeze for ColonySnapshot
impl RefUnwindSafe for ColonySnapshot
impl Send for ColonySnapshot
impl Sync for ColonySnapshot
impl Unpin for ColonySnapshot
impl UnwindSafe for ColonySnapshot
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