#[non_exhaustive]pub struct CantLayout {
pub entity: EntityId,
pub rail_head_distance: f64,
/* private fields */
}Expand description
One resolved, ordered, continuity-checked cant profile.
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.entity: EntityIdThe IfcAlignmentCant entity this layout was resolved from.
rail_head_distance: f64RailHeadDistance: track gauge used to convert cant to superelevation
angle, in metres.
Implementations§
Source§impl CantLayout
impl CantLayout
Sourcepub fn resolve(
model: &Model,
entity: EntityId,
units: AlignmentUnits,
) -> AlignmentResult<Self>
pub fn resolve( model: &Model, entity: EntityId, units: AlignmentUnits, ) -> AlignmentResult<Self>
Resolve IfcAlignmentCant#entity’s nested IfcAlignmentSegment
chain into an ordered, continuity-checked cant profile.
Sourcepub fn segments(&self) -> &[CantSegment]
pub fn segments(&self) -> &[CantSegment]
Segments in authored (distance-along) order.
Sourcepub fn cant_at_distance(
&self,
distance_along: f64,
) -> AlignmentResult<CantAtStation>
pub fn cant_at_distance( &self, distance_along: f64, ) -> AlignmentResult<CantAtStation>
Cant at an absolute distance-along value within this profile’s span.
Trait Implementations§
Source§impl Clone for CantLayout
impl Clone for CantLayout
Source§impl Debug for CantLayout
impl Debug for CantLayout
Source§impl PartialEq for CantLayout
impl PartialEq for CantLayout
impl StructuralPartialEq for CantLayout
Auto Trait Implementations§
impl Freeze for CantLayout
impl RefUnwindSafe for CantLayout
impl Send for CantLayout
impl Sync for CantLayout
impl Unpin for CantLayout
impl UnsafeUnpin for CantLayout
impl UnwindSafe for CantLayout
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