pub trait HasAgentIds {
// Required methods
fn agent_ids(&self) -> Vec<AgentId> ⓘ;
fn agent_ids_into(&self, buf: &mut Vec<AgentId>);
}Expand description
Trait for types that can provide a snapshot of current agent IDs.
Implemented by StandardModel to allow schedulers to read agent IDs
without full Model bounds.
Required Methods§
Sourcefn agent_ids_into(&self, buf: &mut Vec<AgentId>)
fn agent_ids_into(&self, buf: &mut Vec<AgentId>)
Append all agent IDs into buf (does not clear it first).