#[non_exhaustive]pub struct DroppedRing {
pub operand: OverlayOperand,
pub polygon: usize,
pub ring: RingRole,
pub reason: DropReason,
pub area: f64,
pub area_bound: f64,
}Expand description
One input ring an operation left out, and why.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.operand: OverlayOperandThe operand the ring belonged to.
polygon: usizeThe index of its polygon in the operand; for
crate::union_soup_with, the index of the ring.
ring: RingRoleWhich ring of that polygon it was.
reason: DropReasonWhy it was dropped.
area: f64The magnitude of its signed area, computed exactly and rounded once for output. For a dropped outer ring, the area the operand lost; for a dropped hole, the area it gained.
area_bound: f64A proven upper bound on the exact magnitude of its signed area.
Trait Implementations§
Source§impl Clone for DroppedRing
impl Clone for DroppedRing
Source§fn clone(&self) -> DroppedRing
fn clone(&self) -> DroppedRing
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 DroppedRing
Source§impl Debug for DroppedRing
impl Debug for DroppedRing
Source§impl PartialEq for DroppedRing
impl PartialEq for DroppedRing
impl StructuralPartialEq for DroppedRing
Auto Trait Implementations§
impl Freeze for DroppedRing
impl RefUnwindSafe for DroppedRing
impl Send for DroppedRing
impl Sync for DroppedRing
impl Unpin for DroppedRing
impl UnsafeUnpin for DroppedRing
impl UnwindSafe for DroppedRing
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