Struct sim::DistanceInterval [−][src]
Fields
start: Distance
end: Distance
Implementations
impl DistanceInterval
[src]
impl DistanceInterval
[src]pub fn new_driving(start: Distance, end: Distance) -> DistanceInterval
[src]
pub fn new_walking(start: Distance, end: Distance) -> DistanceInterval
[src]
pub fn lerp(&self, x: f64) -> Distance
[src]
pub fn length(&self) -> Distance
[src]
Trait Implementations
impl Clone for DistanceInterval
[src]
impl Clone for DistanceInterval
[src]fn clone(&self) -> DistanceInterval
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for DistanceInterval
[src]
impl<'de> Deserialize<'de> for DistanceInterval
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<DistanceInterval> for DistanceInterval
[src]
impl PartialEq<DistanceInterval> for DistanceInterval
[src]fn eq(&self, other: &DistanceInterval) -> bool
[src]
fn ne(&self, other: &DistanceInterval) -> bool
[src]
impl Serialize for DistanceInterval
[src]
impl Serialize for DistanceInterval
[src]impl Copy for DistanceInterval
[src]
impl StructuralPartialEq for DistanceInterval
[src]
Auto Trait Implementations
impl RefUnwindSafe for DistanceInterval
impl Send for DistanceInterval
impl Sync for DistanceInterval
impl Unpin for DistanceInterval
impl UnwindSafe for DistanceInterval
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,