#[non_exhaustive]pub struct CantAtStation {
pub left: f64,
pub right: f64,
}Expand description
Cant applied to each rail at one normalized position along a segment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.left: f64Elevation of the left rail above the reference plane.
right: f64Elevation of the right rail above the reference plane.
Trait Implementations§
Source§impl Clone for CantAtStation
impl Clone for CantAtStation
Source§fn clone(&self) -> CantAtStation
fn clone(&self) -> CantAtStation
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 CantAtStation
Source§impl Debug for CantAtStation
impl Debug for CantAtStation
Source§impl PartialEq for CantAtStation
impl PartialEq for CantAtStation
impl StructuralPartialEq for CantAtStation
Auto Trait Implementations§
impl Freeze for CantAtStation
impl RefUnwindSafe for CantAtStation
impl Send for CantAtStation
impl Sync for CantAtStation
impl Unpin for CantAtStation
impl UnsafeUnpin for CantAtStation
impl UnwindSafe for CantAtStation
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