pub struct ClearanceBelow { /* private fields */ }Expand description
The clearance below a flight or ramp.
A space’s floor is its body’s downward-facing level faces. The clearance
is the least vertical distance from a point of a requested space’s floor
up to the subject’s underside directly above it, leaving out where the
subject rests on that floor; None when the subject stands above no
requested floor.
Implementations§
Source§impl ClearanceBelow
impl ClearanceBelow
Sourcepub fn try_new(
request: ClearanceBelowRequest,
clearance: Option<MeasuredInterval>,
governing: Vec<ObjectId>,
evidence: Evidence,
) -> Result<Self, WalkingSurfaceError>
pub fn try_new( request: ClearanceBelowRequest, clearance: Option<MeasuredInterval>, governing: Vec<ObjectId>, evidence: Evidence, ) -> Result<Self, WalkingSurfaceError>
The clearance answering request. governing names the spaces whose
floor may lie closest below: at least one when there is a clearance,
none otherwise, every one requested. A clearance interval is never
exact evidence.
Sourcepub fn request(&self) -> &ClearanceBelowRequest
pub fn request(&self) -> &ClearanceBelowRequest
The request this answers.
Sourcepub fn clearance(&self) -> Option<MeasuredInterval>
pub fn clearance(&self) -> Option<MeasuredInterval>
The least vertical clearance, or None when no requested floor lies
beneath.
Trait Implementations§
Source§impl Clone for ClearanceBelow
impl Clone for ClearanceBelow
Source§impl Debug for ClearanceBelow
impl Debug for ClearanceBelow
Source§impl PartialEq for ClearanceBelow
impl PartialEq for ClearanceBelow
impl StructuralPartialEq for ClearanceBelow
Auto Trait Implementations§
impl Freeze for ClearanceBelow
impl RefUnwindSafe for ClearanceBelow
impl Send for ClearanceBelow
impl Sync for ClearanceBelow
impl Unpin for ClearanceBelow
impl UnsafeUnpin for ClearanceBelow
impl UnwindSafe for ClearanceBelow
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