rustsim_core/space.rs
1//! Space trait - marker for spatial structures in which agents exist.
2
3/// Marker trait for simulation spaces.
4///
5/// Spaces define the topology in which agents live (grid, continuous, graph, etc.).
6/// Concrete space types live in the `rustsim-spaces` crate and implement both this
7/// trait and [`SpaceInteraction`] for positioned agent types.
8///
9/// The `Send + Sync` bounds allow spaces to be shared across threads when needed
10/// by the compute backend.
11///
12/// [`SpaceInteraction`]: crate::interaction::SpaceInteraction
13pub trait Space: Send + Sync {}