pub struct ShelfGeometry { /* private fields */ }Expand description
The physical shelving arrangement whose run length is being measured.
These are geometry inputs, not thresholds: they describe the shelf being measured, so they belong to the measurement request. The minimum a space must provide is policy and stays with the capability. Keeping the two apart is what stops a threshold drifting back behind the evidence seam.
Implementations§
Source§impl ShelfGeometry
impl ShelfGeometry
Sourcepub fn try_new(
depth_metres: f64,
horizontal_spacing_metres: f64,
vertical_spacing_metres: f64,
bottom_elevation_metres: f64,
top_elevation_metres: f64,
door_clearance_metres: f64,
) -> Result<Self, LinearQuantityError>
pub fn try_new( depth_metres: f64, horizontal_spacing_metres: f64, vertical_spacing_metres: f64, bottom_elevation_metres: f64, top_elevation_metres: f64, door_clearance_metres: f64, ) -> Result<Self, LinearQuantityError>
Rejects a physically impossible arrangement.
pub fn depth_metres(&self) -> f64
pub fn horizontal_spacing_metres(&self) -> f64
pub fn vertical_spacing_metres(&self) -> f64
pub fn bottom_elevation_metres(&self) -> f64
pub fn top_elevation_metres(&self) -> f64
pub fn door_clearance_metres(&self) -> f64
Trait Implementations§
Source§impl Clone for ShelfGeometry
impl Clone for ShelfGeometry
Source§fn clone(&self) -> ShelfGeometry
fn clone(&self) -> ShelfGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShelfGeometry
Source§impl Debug for ShelfGeometry
impl Debug for ShelfGeometry
Source§impl PartialEq for ShelfGeometry
impl PartialEq for ShelfGeometry
impl StructuralPartialEq for ShelfGeometry
Auto Trait Implementations§
impl Freeze for ShelfGeometry
impl RefUnwindSafe for ShelfGeometry
impl Send for ShelfGeometry
impl Sync for ShelfGeometry
impl Unpin for ShelfGeometry
impl UnsafeUnpin for ShelfGeometry
impl UnwindSafe for ShelfGeometry
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