pub struct SideDistance { /* private fields */ }Expand description
One candidate beside one side.
Implementations§
Source§impl SideDistance
impl SideDistance
Sourcepub fn new(
candidate: ObjectId,
side: RectangleSide,
presence: SidePresence,
distance: PlanLength,
) -> Self
pub fn new( candidate: ObjectId, side: RectangleSide, presence: SidePresence, distance: PlanLength, ) -> Self
candidate meets side’s strip (surely or possibly), the nearest
point of its part there distance from the centre line.
Sourcepub fn side(&self) -> RectangleSide
pub fn side(&self) -> RectangleSide
The side it lies beside.
Sourcepub fn presence(&self) -> SidePresence
pub fn presence(&self) -> SidePresence
Whether it surely meets the side’s strip.
Sourcepub fn distance(&self) -> &PlanLength
pub fn distance(&self) -> &PlanLength
Its least distance from the side’s centre line within the strip.
Trait Implementations§
Source§impl Clone for SideDistance
impl Clone for SideDistance
Source§impl Debug for SideDistance
impl Debug for SideDistance
Source§impl PartialEq for SideDistance
impl PartialEq for SideDistance
impl StructuralPartialEq for SideDistance
Auto Trait Implementations§
impl Freeze for SideDistance
impl RefUnwindSafe for SideDistance
impl Send for SideDistance
impl Sync for SideDistance
impl Unpin for SideDistance
impl UnsafeUnpin for SideDistance
impl UnwindSafe for SideDistance
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