pub fn remove_agent<S, A, Store, Props, R, Sch>(
model: &mut StandardModel<S, A, Store, Props, R, Sch>,
id: AgentId,
) -> Result<Option<A>, InteractionError<S::Error>>where
A: PositionedAgent,
S: SpaceInteraction<A>,
Store: AgentStore<A>,
R: RngCore,
Sch: Scheduler<StandardModel<S, A, Store, Props, R, Sch>>,Expand description
Remove a positioned agent from both the store and the space.
Returns Ok(None) if no agent with this ID was found.