pub struct CrowdAgent {
pub id: AgentId,
pub ped: Pedestrian,
}Expand description
Identified pedestrian record for use with rustsim-core agent stores.
Wraps a Pedestrian with an AgentId so the crowd physics can
be driven through the same StandardModel / VecStore / telemetry
machinery used by the rest of the workspace.
Fields§
§id: AgentIdStable agent identifier assigned by the owning model.
ped: PedestrianUnderlying pedestrian state.
Trait Implementations§
Source§impl Agent for CrowdAgent
impl Agent for CrowdAgent
Source§impl Clone for CrowdAgent
impl Clone for CrowdAgent
Source§fn clone(&self) -> CrowdAgent
fn clone(&self) -> CrowdAgent
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 CrowdAgent
impl Debug for CrowdAgent
Source§impl PartialEq for CrowdAgent
impl PartialEq for CrowdAgent
Source§impl SoaExtractableF64 for CrowdAgent
SoA column layout — 8 columns: pos.x, pos.y, vel.x, vel.y, radius, desired_speed, dest.x, dest.y. The 8-wide layout matches the
DeviceSoaStore expectations for f64-kernel launches.
impl SoaExtractableF64 for CrowdAgent
SoA column layout — 8 columns: pos.x, pos.y, vel.x, vel.y, radius, desired_speed, dest.x, dest.y. The 8-wide layout matches the
DeviceSoaStore expectations for f64-kernel launches.
Source§fn num_columns() -> usize
fn num_columns() -> usize
Number of
f64 columns to extract.Source§fn column_names() -> Vec<&'static str>
fn column_names() -> Vec<&'static str>
Human-readable names for each column.
Source§fn extract_row(&self, columns: &mut [Vec<f64>])
fn extract_row(&self, columns: &mut [Vec<f64>])
Push this agent’s values into the column vectors.
Source§fn write_back_row(&mut self, columns: &[&[f64]], row: usize)
fn write_back_row(&mut self, columns: &[&[f64]], row: usize)
Read this agent’s values back from the column slices at
row.impl Copy for CrowdAgent
impl StructuralPartialEq for CrowdAgent
Auto Trait Implementations§
impl Freeze for CrowdAgent
impl RefUnwindSafe for CrowdAgent
impl Send for CrowdAgent
impl Sync for CrowdAgent
impl Unpin for CrowdAgent
impl UnsafeUnpin for CrowdAgent
impl UnwindSafe for CrowdAgent
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