Struct headless::AgentPosition[][src]

pub(crate) struct AgentPosition {
    id: AgentID,
    trip: Option<TripID>,
    person: Option<PersonID>,
    vehicle_type: Option<VehicleType>,
    pos: LonLat,
    distance_crossed: Distance,
}

Fields

id: AgentID

The agent’s ID

trip: Option<TripID>

None for buses

person: Option<PersonID>

None for buses

vehicle_type: Option<VehicleType>

None for pedestrians

pos: LonLat

The agent’s current position. For pedestrians, this is their center. For vehicles, this represents the front of the vehicle.

distance_crossed: Distance

The distance crossed so far by the agent, in meters. There are some caveats to this value:

Trait Implementations

impl Serialize for AgentPosition[src]

Auto Trait Implementations

impl RefUnwindSafe for AgentPosition

impl Send for AgentPosition

impl Sync for AgentPosition

impl Unpin for AgentPosition

impl UnwindSafe for AgentPosition

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,