#[non_exhaustive]pub struct CantSegment {
pub entity: EntityId,
pub start_dist_along: f64,
pub horizontal_length: f64,
pub start_cant_left: f64,
pub end_cant_left: Option<f64>,
pub start_cant_right: f64,
pub end_cant_right: Option<f64>,
pub predefined_type: CantSegmentType,
}Expand description
Borrowed projection of one nested segment of an IfcAlignmentCant layout
(IfcAlignmentCantSegment), with lengths already reduced to metres.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entity: EntityIdThe IfcAlignmentCantSegment entity this was read from.
start_dist_along: f64StartDistAlong: distance along the parent alignment where this
segment begins.
horizontal_length: f64HorizontalLength: the segment’s span along the alignment.
start_cant_left: f64StartCantLeft: cant applied to the left rail at the segment start.
end_cant_left: Option<f64>EndCantLeft: cant applied to the left rail at the segment end, when
authored. Absence is legal only when end_cant_right is also absent.
start_cant_right: f64StartCantRight: cant applied to the right rail at the segment start.
end_cant_right: Option<f64>EndCantRight: cant applied to the right rail at the segment end,
when authored. Absence is legal only when end_cant_left is also
absent.
predefined_type: CantSegmentTypePredefinedType: which transition law governs this segment.
Trait Implementations§
Source§impl Clone for CantSegment
impl Clone for CantSegment
Source§fn clone(&self) -> CantSegment
fn clone(&self) -> CantSegment
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more