pub struct PlanArea { /* private fields */ }Expand description
A measured plan area in square metres, with its evidence.
Implementations§
Source§impl PlanArea
impl PlanArea
Sourcepub fn try_new(
lower: f64,
upper: f64,
evidence: Evidence,
) -> Result<Self, PlanAreaError>
pub fn try_new( lower: f64, upper: f64, evidence: Evidence, ) -> Result<Self, PlanAreaError>
An area known to lie in [lower, upper].
The evidence is exact exactly when the bounds coincide: an interval cannot be exact evidence, and a point cannot be approximate.
Sourcepub fn lower_square_metres(&self) -> f64
pub fn lower_square_metres(&self) -> f64
Smallest area the object can have, in square metres.
Sourcepub fn upper_square_metres(&self) -> f64
pub fn upper_square_metres(&self) -> f64
Largest area the object can have, in square metres.
Trait Implementations§
impl StructuralPartialEq for PlanArea
Auto Trait Implementations§
impl Freeze for PlanArea
impl RefUnwindSafe for PlanArea
impl Send for PlanArea
impl Sync for PlanArea
impl Unpin for PlanArea
impl UnsafeUnpin for PlanArea
impl UnwindSafe for PlanArea
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