pub struct StretchPart { /* private fields */ }Expand description
One straight part of a stretch a handrail is measured along: the
horizontal direction it climbs and the positions of the walking
surface’s sides along across it.
A straight flight or a ramp’s run is one part. A turning flight’s parts are its runs of consecutive treads filling rectangles square to parallel nosings, bottom to top; its winders belong to none, and a rail beside them is measured in the frame of the part it runs on from.
Implementations§
Source§impl StretchPart
impl StretchPart
Sourcepub fn try_new(
direction: MetricDirection,
(left, right): (ElevationInterval, ElevationInterval),
) -> Result<Self, WalkingSurfaceError>
pub fn try_new( direction: MetricDirection, (left, right): (ElevationInterval, ElevationInterval), ) -> Result<Self, WalkingSurfaceError>
A part climbing along the horizontal direction, its walking
surface between the ordered sides left and right across it.
Sourcepub fn direction(&self) -> MetricDirection
pub fn direction(&self) -> MetricDirection
The horizontal direction the part climbs.
Sourcepub fn sides(&self) -> (ElevationInterval, ElevationInterval)
pub fn sides(&self) -> (ElevationInterval, ElevationInterval)
Positions of the walking surface’s sides across the direction.
Trait Implementations§
Source§impl Clone for StretchPart
impl Clone for StretchPart
impl Copy for StretchPart
Source§impl Debug for StretchPart
impl Debug for StretchPart
Source§impl PartialEq for StretchPart
impl PartialEq for StretchPart
impl StructuralPartialEq for StretchPart
Auto Trait Implementations§
impl Freeze for StretchPart
impl RefUnwindSafe for StretchPart
impl Send for StretchPart
impl Sync for StretchPart
impl Unpin for StretchPart
impl UnsafeUnpin for StretchPart
impl UnwindSafe for StretchPart
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