pub enum Intersection2 {
None,
Point(Point2),
Overlap,
Infinite,
}Expand description
A minimal two-dimensional intersection result.
Variants§
None
No intersection was found.
Point(Point2)
A single point intersection.
Overlap
A finite overlapping region or segment.
Infinite
Infinitely many intersections, such as coincident infinite primitives.
Implementations§
Source§impl Intersection2
impl Intersection2
Sourcepub const fn is_empty(self) -> bool
pub const fn is_empty(self) -> bool
Returns true when this is Intersection2::None.
Trait Implementations§
Source§impl Clone for Intersection2
impl Clone for Intersection2
Source§fn clone(&self) -> Intersection2
fn clone(&self) -> Intersection2
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 Intersection2
impl Debug for Intersection2
Source§impl PartialEq for Intersection2
impl PartialEq for Intersection2
Source§fn eq(&self, other: &Intersection2) -> bool
fn eq(&self, other: &Intersection2) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Intersection2
impl StructuralPartialEq for Intersection2
Auto Trait Implementations§
impl Freeze for Intersection2
impl RefUnwindSafe for Intersection2
impl Send for Intersection2
impl Sync for Intersection2
impl Unpin for Intersection2
impl UnsafeUnpin for Intersection2
impl UnwindSafe for Intersection2
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