pub struct UnallocatedRegion { /* private fields */ }Expand description
One connected region of storey floor that belongs to no space.
Each region is measured on its own, so a rule can judge a large hole apart from small shafts on the same storey: a storey total would hide which one misses the allowance.
Implementations§
Source§impl UnallocatedRegion
impl UnallocatedRegion
Sourcepub fn try_new(
storey: ObjectId,
area_square_metres: f64,
elements: Vec<ObjectId>,
) -> Result<Self, SpaceError>
pub fn try_new( storey: ObjectId, area_square_metres: f64, elements: Vec<ObjectId>, ) -> Result<Self, SpaceError>
A region of area_square_metres on storey, surrounded by
elements (the bodies whose footprint meets its boundary).
Sourcepub fn with_floor_area(self, square_metres: f64) -> Result<Self, SpaceError>
pub fn with_floor_area(self, square_metres: f64) -> Result<Self, SpaceError>
States the storey’s gross floor area the region is part of, so a rule can judge the region’s share of it. A gross area smaller than the region, negative or non-finite is refused.
pub fn storey(&self) -> &ObjectId
pub fn area_square_metres(&self) -> f64
Sourcepub fn floor_area_square_metres(&self) -> Option<f64>
pub fn floor_area_square_metres(&self) -> Option<f64>
The storey’s gross floor area, when the service states it.
Trait Implementations§
Source§impl Clone for UnallocatedRegion
impl Clone for UnallocatedRegion
Source§impl Debug for UnallocatedRegion
impl Debug for UnallocatedRegion
Source§impl PartialEq for UnallocatedRegion
impl PartialEq for UnallocatedRegion
impl StructuralPartialEq for UnallocatedRegion
Auto Trait Implementations§
impl Freeze for UnallocatedRegion
impl RefUnwindSafe for UnallocatedRegion
impl Send for UnallocatedRegion
impl Sync for UnallocatedRegion
impl Unpin for UnallocatedRegion
impl UnsafeUnpin for UnallocatedRegion
impl UnwindSafe for UnallocatedRegion
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