pub struct Headroom { /* private fields */ }Expand description
The vertical clearance above an object’s walking surface.
The walking surface is the subject’s upward-facing faces no steeper than
45°: treads, ramp slopes and landings. The clearance is the least
vertical distance from a point of it to an obstacle’s body directly
above; None when no requested obstacle stands above it anywhere.
Implementations§
Source§impl Headroom
impl Headroom
Sourcepub fn try_new(
request: HeadroomRequest,
clearance: Option<MeasuredInterval>,
governing: Vec<ObjectId>,
evidence: Evidence,
) -> Result<Self, WalkingSurfaceError>
pub fn try_new( request: HeadroomRequest, clearance: Option<MeasuredInterval>, governing: Vec<ObjectId>, evidence: Evidence, ) -> Result<Self, WalkingSurfaceError>
The headroom answering request. governing names the obstacles
whose clearance may be the least one: at least one when there is a
clearance, none otherwise, every one requested. A clearance interval
is never exact evidence.
Sourcepub fn request(&self) -> &HeadroomRequest
pub fn request(&self) -> &HeadroomRequest
The request this answers.
Sourcepub fn clearance(&self) -> Option<MeasuredInterval>
pub fn clearance(&self) -> Option<MeasuredInterval>
The least vertical clearance, or None when nothing stands above.
Trait Implementations§
impl StructuralPartialEq for Headroom
Auto Trait Implementations§
impl Freeze for Headroom
impl RefUnwindSafe for Headroom
impl Send for Headroom
impl Sync for Headroom
impl Unpin for Headroom
impl UnsafeUnpin for Headroom
impl UnwindSafe for Headroom
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