pub struct AgentSnapshot {
pub id: AgentId,
pub agent_type: String,
pub position: Position,
pub age: Tick,
pub permeability: f64,
pub vocabulary_size: usize,
}Expand description
A serializable snapshot of an agent’s state.
Fields§
§id: AgentId§agent_type: String§position: Position§age: Tick§permeability: f64§vocabulary_size: usizeTrait Implementations§
Source§impl Clone for AgentSnapshot
impl Clone for AgentSnapshot
Source§fn clone(&self) -> AgentSnapshot
fn clone(&self) -> AgentSnapshot
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 AgentSnapshot
impl Debug for AgentSnapshot
Auto Trait Implementations§
impl Freeze for AgentSnapshot
impl RefUnwindSafe for AgentSnapshot
impl Send for AgentSnapshot
impl Sync for AgentSnapshot
impl Unpin for AgentSnapshot
impl UnwindSafe for AgentSnapshot
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