pub struct PlanRecess { /* private fields */ }Expand description
One recess of a footprint: a pocket between the footprint and its convex hull, closed by one hull edge, its mouth.
The width is the mouth’s length; the depth the farthest the pocket
reaches from the mouth’s line. Both are PlanLengths, so a rule judges
them as intervals.
Implementations§
Source§impl PlanRecess
impl PlanRecess
Sourcepub fn try_new(
mouth: [[f64; 2]; 2],
width: PlanLength,
depth: PlanLength,
) -> Result<Self, PlanSpanError>
pub fn try_new( mouth: [[f64; 2]; 2], width: PlanLength, depth: PlanLength, ) -> Result<Self, PlanSpanError>
A recess whose mouth runs from mouth[0] to mouth[1].
Sourcepub fn mouth(&self) -> [[f64; 2]; 2]
pub fn mouth(&self) -> [[f64; 2]; 2]
The mouth’s ends, in canonical metres, as a reviewer locates the recess.
Sourcepub fn width(&self) -> &PlanLength
pub fn width(&self) -> &PlanLength
The width of the mouth.
Sourcepub fn depth(&self) -> &PlanLength
pub fn depth(&self) -> &PlanLength
How deep the recess reaches behind its mouth.
Trait Implementations§
Source§impl Clone for PlanRecess
impl Clone for PlanRecess
Source§impl Debug for PlanRecess
impl Debug for PlanRecess
Source§impl PartialEq for PlanRecess
impl PartialEq for PlanRecess
impl StructuralPartialEq for PlanRecess
Auto Trait Implementations§
impl Freeze for PlanRecess
impl RefUnwindSafe for PlanRecess
impl Send for PlanRecess
impl Sync for PlanRecess
impl Unpin for PlanRecess
impl UnsafeUnpin for PlanRecess
impl UnwindSafe for PlanRecess
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