pub struct SpaceOverlap { /* private fields */ }Expand description
A measured overlap between a space and another body.
Implementations§
Source§impl SpaceOverlap
impl SpaceOverlap
pub fn try_new( other: ObjectId, other_is_space: bool, area_square_metres: f64, height_metres: f64, containment: Containment, ) -> Result<Self, SpaceError>
pub fn other(&self) -> &ObjectId
Sourcepub fn other_is_space(&self) -> bool
pub fn other_is_space(&self) -> bool
Whether the overlapping body is itself a space.
pub fn area_square_metres(&self) -> f64
pub fn height_metres(&self) -> f64
pub fn containment(&self) -> Containment
Trait Implementations§
Source§impl Clone for SpaceOverlap
impl Clone for SpaceOverlap
Source§fn clone(&self) -> SpaceOverlap
fn clone(&self) -> SpaceOverlap
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 moreSource§impl Debug for SpaceOverlap
impl Debug for SpaceOverlap
Source§impl PartialEq for SpaceOverlap
impl PartialEq for SpaceOverlap
impl StructuralPartialEq for SpaceOverlap
Auto Trait Implementations§
impl Freeze for SpaceOverlap
impl RefUnwindSafe for SpaceOverlap
impl Send for SpaceOverlap
impl Sync for SpaceOverlap
impl Unpin for SpaceOverlap
impl UnsafeUnpin for SpaceOverlap
impl UnwindSafe for SpaceOverlap
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