#[non_exhaustive]pub struct CantSegmentDraft {
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: &'static str,
}Expand description
Authored fields for IfcAlignmentCantSegment.
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.start_dist_along: f64StartDistAlong.
horizontal_length: f64HorizontalLength; must be non-negative.
start_cant_left: f64StartCantLeft.
end_cant_left: Option<f64>EndCantLeft; paired with end_cant_right.
start_cant_right: f64StartCantRight.
end_cant_right: Option<f64>EndCantRight; paired with end_cant_left.
predefined_type: &'static strPredefinedType, e.g. CONSTANTCANT or LINEARTRANSITION.
Implementations§
Source§impl CantSegmentDraft
impl CantSegmentDraft
Sourcepub const fn new(
start_dist_along: f64,
horizontal_length: f64,
start_cant_left: f64,
start_cant_right: f64,
predefined_type: &'static str,
) -> Self
pub const fn new( start_dist_along: f64, horizontal_length: f64, start_cant_left: f64, start_cant_right: f64, predefined_type: &'static str, ) -> Self
Starts a draft with the segment’s required attributes and no end cant.
Sourcepub const fn end_cant_left(self, value: f64) -> Self
pub const fn end_cant_left(self, value: f64) -> Self
Sets EndCantLeft; pair it with Self::end_cant_right.
Sourcepub const fn end_cant_right(self, value: f64) -> Self
pub const fn end_cant_right(self, value: f64) -> Self
Sets EndCantRight; pair it with Self::end_cant_left.
Trait Implementations§
Source§impl Clone for CantSegmentDraft
impl Clone for CantSegmentDraft
Source§fn clone(&self) -> CantSegmentDraft
fn clone(&self) -> CantSegmentDraft
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 CantSegmentDraft
Auto Trait Implementations§
impl Freeze for CantSegmentDraft
impl RefUnwindSafe for CantSegmentDraft
impl Send for CantSegmentDraft
impl Sync for CantSegmentDraft
impl Unpin for CantSegmentDraft
impl UnsafeUnpin for CantSegmentDraft
impl UnwindSafe for CantSegmentDraft
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