pub struct HandrailRequest { /* private fields */ }Expand description
A request for the handrails along a flight or a run.
The rails are the rule’s selection (railings of a handrail type, say):
sorted, deduplicated and without the subject. reach is how far outside
the walking surface’s sides a rail may run and still be measured along
it, above how far above the pitch line’s highest point its lowest point
may lie (so the rail of a flight stacked above is not taken for this
one’s), and extension how far beyond each end of the pitch line the
rise of a rail’s top is measured, zero for none.
Implementations§
Source§impl HandrailRequest
impl HandrailRequest
Sourcepub fn try_new(
subject: ObjectId,
stretch: WalkingStretch,
rails: impl IntoIterator<Item = ObjectId>,
(reach, above): (f64, f64),
extension: f64,
) -> Result<Self, WalkingSurfaceError>
pub fn try_new( subject: ObjectId, stretch: WalkingStretch, rails: impl IntoIterator<Item = ObjectId>, (reach, above): (f64, f64), extension: f64, ) -> Result<Self, WalkingSurfaceError>
The handrails along stretch of subject among rails. reach,
above and extension must be finite and not negative.
Sourcepub fn stretch(&self) -> WalkingStretch
pub fn stretch(&self) -> WalkingStretch
Which stretch of it.
Sourcepub fn reach(&self) -> f64
pub fn reach(&self) -> f64
How far outside the walking surface’s sides a rail is still measured.
Trait Implementations§
Source§impl Clone for HandrailRequest
impl Clone for HandrailRequest
Source§impl Debug for HandrailRequest
impl Debug for HandrailRequest
Source§impl PartialEq for HandrailRequest
impl PartialEq for HandrailRequest
impl StructuralPartialEq for HandrailRequest
Auto Trait Implementations§
impl Freeze for HandrailRequest
impl RefUnwindSafe for HandrailRequest
impl Send for HandrailRequest
impl Sync for HandrailRequest
impl Unpin for HandrailRequest
impl UnsafeUnpin for HandrailRequest
impl UnwindSafe for HandrailRequest
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