[−][src]Struct map_model::traversable::Position
Fields
lane: LaneID
dist_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]
&self,
lane: LaneID,
our_len: Distance,
map: &Map
) -> Position
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for Position
[src]
impl Eq for Position
[src]
impl Ord for Position
[src]
fn cmp(&self, other: &Position) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Position> for Position
[src]
impl PartialOrd<Position> for Position
[src]
fn partial_cmp(&self, other: &Position) -> Option<Ordering>
[src]
fn lt(&self, other: &Position) -> bool
[src]
fn le(&self, other: &Position) -> bool
[src]
fn gt(&self, other: &Position) -> bool
[src]
fn ge(&self, other: &Position) -> bool
[src]
impl Serialize for Position
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Position
[src]
impl StructuralPartialEq for Position
[src]
Auto Trait Implementations
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,