Struct map_model::Position[][src]

pub struct Position {
    lane: LaneID,
    dist_along: Distance,
}

Represents a specific point some distance along a lane.

Fields

lane: LaneIDdist_along: Distance

Implementations

impl Position[src]

pub fn new(lane: LaneID, dist_along: Distance) -> Position[src]

pub fn start(lane: LaneID) -> Position[src]

pub fn end(lane: LaneID, map: &Map) -> Position[src]

pub fn lane(&self) -> LaneID[src]

pub fn dist_along(&self) -> Distance[src]

pub fn pt(&self, map: &Map) -> Pt2D[src]

pub fn pt_and_angle(&self, map: &Map) -> (Pt2D, Angle)[src]

pub fn equiv_pos(&self, lane: LaneID, map: &Map) -> Position[src]

pub fn equiv_pos_for_long_object(
    &self,
    lane: LaneID,
    our_len: Distance,
    map: &Map
) -> Position
[src]

pub fn min_dist(self, dist_along: Distance, map: &Map) -> Option<Position>[src]

pub fn buffer_dist(self, buffer: Distance, map: &Map) -> Option<Position>[src]

Trait Implementations

impl Clone for Position[src]

impl Copy for Position[src]

impl Debug for Position[src]

impl<'de> Deserialize<'de> for Position[src]

impl Display for Position[src]

impl Eq for Position[src]

impl Ord for Position[src]

impl PartialEq<Position> for Position[src]

impl PartialOrd<Position> for Position[src]

impl Serialize for Position[src]

impl StructuralEq for Position[src]

impl StructuralPartialEq for Position[src]

Auto Trait Implementations

impl RefUnwindSafe for Position[src]

impl Send for Position[src]

impl Sync for Position[src]

impl Unpin for Position[src]

impl UnwindSafe for Position[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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>,