#[non_exhaustive]pub enum StationFrame {
Section,
Plan,
}Expand description
Which frame a station’s offsets and orientation are read in.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Section
The basis curve’s section frame: rolled on a banked curve, leaning with the grade on any 3D curve.
Plan
The vertical frame: the tangent’s horizontal projection, the
horizontal left normal and +Z. Grade and bank are dropped, so a
section stands upright.
Trait Implementations§
Source§impl Clone for StationFrame
impl Clone for StationFrame
Source§fn clone(&self) -> StationFrame
fn clone(&self) -> StationFrame
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 StationFrame
Source§impl Debug for StationFrame
impl Debug for StationFrame
Source§impl Default for StationFrame
impl Default for StationFrame
Source§fn default() -> StationFrame
fn default() -> StationFrame
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StationFrame
impl<'de> Deserialize<'de> for StationFrame
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
impl Eq for StationFrame
Source§impl Hash for StationFrame
impl Hash for StationFrame
Source§impl PartialEq for StationFrame
impl PartialEq for StationFrame
Source§impl Serialize for StationFrame
impl Serialize for StationFrame
impl StructuralPartialEq for StationFrame
Auto Trait Implementations§
impl Freeze for StationFrame
impl RefUnwindSafe for StationFrame
impl Send for StationFrame
impl Sync for StationFrame
impl Unpin for StationFrame
impl UnsafeUnpin for StationFrame
impl UnwindSafe for StationFrame
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