pub struct StationOffsets {
pub lateral: Scalar,
pub vertical: Scalar,
pub longitudinal: Scalar,
}Expand description
Offsets of a station from its basis curve, in the curve’s section frame.
Fields§
§lateral: ScalarAlong the lateral axis, positive to the left of the tangent.
vertical: ScalarAlong the section’s up axis.
longitudinal: ScalarAlong the tangent, positive in the direction of increasing distance.
Implementations§
Trait Implementations§
Source§impl Clone for StationOffsets
impl Clone for StationOffsets
Source§fn clone(&self) -> StationOffsets
fn clone(&self) -> StationOffsets
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StationOffsets
Source§impl Debug for StationOffsets
impl Debug for StationOffsets
Source§impl Default for StationOffsets
impl Default for StationOffsets
Source§fn default() -> StationOffsets
fn default() -> StationOffsets
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StationOffsets
impl<'de> Deserialize<'de> for StationOffsets
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StationOffsets
impl PartialEq for StationOffsets
Source§impl Serialize for StationOffsets
impl Serialize for StationOffsets
impl StructuralPartialEq for StationOffsets
Auto Trait Implementations§
impl Freeze for StationOffsets
impl RefUnwindSafe for StationOffsets
impl Send for StationOffsets
impl Sync for StationOffsets
impl Unpin for StationOffsets
impl UnsafeUnpin for StationOffsets
impl UnwindSafe for StationOffsets
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