pub struct ClearWidthEvidence { /* private fields */ }Expand description
The narrowest clear width along a flight or run.
At each position along the stretch, between its ends, the free width is
the distance across between the innermost points the requested
obstacles reach within the band from the left and from the right, where
no obstacle reaches in, the walking surface’s own side; the clear width
is the least of these. governing names the obstacles bounding the
narrowest place, none when the walking surface’s own sides do.
Implementations§
Source§impl ClearWidthEvidence
impl ClearWidthEvidence
Sourcepub fn try_new(
request: ClearWidthRequest,
width: MeasuredInterval,
governing: Vec<ObjectId>,
evidence: Evidence,
) -> Result<Self, WalkingSurfaceError>
pub fn try_new( request: ClearWidthRequest, width: MeasuredInterval, governing: Vec<ObjectId>, evidence: Evidence, ) -> Result<Self, WalkingSurfaceError>
The clear width answering request: never negative, governing
among the requested obstacles, and exact evidence only for a point.
Sourcepub fn request(&self) -> &ClearWidthRequest
pub fn request(&self) -> &ClearWidthRequest
The request this answers.
Sourcepub fn width(&self) -> MeasuredInterval
pub fn width(&self) -> MeasuredInterval
The narrowest clear width.
Trait Implementations§
Source§impl Clone for ClearWidthEvidence
impl Clone for ClearWidthEvidence
Source§impl Debug for ClearWidthEvidence
impl Debug for ClearWidthEvidence
Source§impl PartialEq for ClearWidthEvidence
impl PartialEq for ClearWidthEvidence
impl StructuralPartialEq for ClearWidthEvidence
Auto Trait Implementations§
impl Freeze for ClearWidthEvidence
impl RefUnwindSafe for ClearWidthEvidence
impl Send for ClearWidthEvidence
impl Sync for ClearWidthEvidence
impl Unpin for ClearWidthEvidence
impl UnsafeUnpin for ClearWidthEvidence
impl UnwindSafe for ClearWidthEvidence
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