pub struct Station {
pub distance: Scalar,
pub offsets: StationOffsets,
}Expand description
A distance along a basis curve with offsets in its section frame.
Fields§
§distance: ScalarDistance from the basis curve’s start, in its convention (see the module documentation).
offsets: StationOffsetsOffsets in the section frame at that distance.
Implementations§
Source§impl Station
impl Station
Sourcepub const fn new(distance: Scalar, offsets: StationOffsets) -> Self
pub const fn new(distance: Scalar, offsets: StationOffsets) -> Self
A station at distance with offsets.
Sourcepub fn is_well_formed(&self) -> bool
pub fn is_well_formed(&self) -> bool
Whether the distance is finite and not negative and every offset is finite.
Trait Implementations§
impl Copy for Station
Source§impl<'de> Deserialize<'de> for Station
impl<'de> Deserialize<'de> for Station
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 From<Station> for RunStation
impl From<Station> for RunStation
Source§fn from(station: Station) -> Self
fn from(station: Station) -> Self
The plain station: the outgoing piece, no window, what a station of
an OffsetByStations
means.
impl StructuralPartialEq for Station
Auto Trait Implementations§
impl Freeze for Station
impl RefUnwindSafe for Station
impl Send for Station
impl Sync for Station
impl Unpin for Station
impl UnsafeUnpin for Station
impl UnwindSafe for Station
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