pub struct ClearWidthRequest { /* private fields */ }Expand description
A request for the clear width of a flight or a ramp’s run: the free width across it that the requested obstacles leave (handrails, walls, anything standing beside or over the walking surface) between two heights above its pitch line.
The obstacles are the rule’s selection, sorted, deduplicated and without
the subject. band is (from, to), how far above the pitch line (a
flight’s nosing line, a run’s surface) the band starts and ends, 0 <= from < to.
Implementations§
Source§impl ClearWidthRequest
impl ClearWidthRequest
Sourcepub fn try_new(
subject: ObjectId,
stretch: WalkingStretch,
obstacles: impl IntoIterator<Item = ObjectId>,
band: (f64, f64),
) -> Result<Self, WalkingSurfaceError>
pub fn try_new( subject: ObjectId, stretch: WalkingStretch, obstacles: impl IntoIterator<Item = ObjectId>, band: (f64, f64), ) -> Result<Self, WalkingSurfaceError>
The clear width along stretch of subject that obstacles leave
within band above its pitch line.
Sourcepub fn stretch(&self) -> WalkingStretch
pub fn stretch(&self) -> WalkingStretch
Which stretch of it.
Trait Implementations§
Source§impl Clone for ClearWidthRequest
impl Clone for ClearWidthRequest
Source§impl Debug for ClearWidthRequest
impl Debug for ClearWidthRequest
Source§impl PartialEq for ClearWidthRequest
impl PartialEq for ClearWidthRequest
impl StructuralPartialEq for ClearWidthRequest
Auto Trait Implementations§
impl Freeze for ClearWidthRequest
impl RefUnwindSafe for ClearWidthRequest
impl Send for ClearWidthRequest
impl Sync for ClearWidthRequest
impl Unpin for ClearWidthRequest
impl UnsafeUnpin for ClearWidthRequest
impl UnwindSafe for ClearWidthRequest
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