Enum libreda_db::prelude::EdgeIntersection
source · [−]pub enum EdgeIntersection<TP, TO> where
TP: CoordinateType,
TO: CoordinateType, {
None,
Point(Point<TP>),
EndPoint(Point<TO>),
Overlap(Edge<TO>),
}Expand description
Return type for the edge-edge intersection functions. Stores all possible results of a edge to edge intersection.
Variants
None
No intersection.
Point(Point<TP>)
Intersection in a single point but not on an endpoint of an edge.
EndPoint(Point<TO>)
Intersection in an endpoint of an edge.
Overlap(Edge<TO>)
Full or partial overlap.
Trait Implementations
sourceimpl<TP, TO> Clone for EdgeIntersection<TP, TO> where
TP: Clone + CoordinateType,
TO: Clone + CoordinateType,
impl<TP, TO> Clone for EdgeIntersection<TP, TO> where
TP: Clone + CoordinateType,
TO: Clone + CoordinateType,
sourcefn clone(&self) -> EdgeIntersection<TP, TO>
fn clone(&self) -> EdgeIntersection<TP, TO>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<TP, TO> Debug for EdgeIntersection<TP, TO> where
TP: Debug + CoordinateType,
TO: Debug + CoordinateType,
impl<TP, TO> Debug for EdgeIntersection<TP, TO> where
TP: Debug + CoordinateType,
TO: Debug + CoordinateType,
sourceimpl<TP, TO> PartialEq<EdgeIntersection<TP, TO>> for EdgeIntersection<TP, TO> where
TP: PartialEq<TP> + CoordinateType,
TO: PartialEq<TO> + CoordinateType,
impl<TP, TO> PartialEq<EdgeIntersection<TP, TO>> for EdgeIntersection<TP, TO> where
TP: PartialEq<TP> + CoordinateType,
TO: PartialEq<TO> + CoordinateType,
sourcefn eq(&self, other: &EdgeIntersection<TP, TO>) -> bool
fn eq(&self, other: &EdgeIntersection<TP, TO>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &EdgeIntersection<TP, TO>) -> bool
fn ne(&self, other: &EdgeIntersection<TP, TO>) -> bool
This method tests for !=.
impl<TP, TO> Copy for EdgeIntersection<TP, TO> where
TP: Copy + CoordinateType,
TO: Copy + CoordinateType,
impl<TP, TO> Eq for EdgeIntersection<TP, TO> where
TP: Eq + CoordinateType,
TO: Eq + CoordinateType,
impl<TP, TO> StructuralEq for EdgeIntersection<TP, TO> where
TP: CoordinateType,
TO: CoordinateType,
impl<TP, TO> StructuralPartialEq for EdgeIntersection<TP, TO> where
TP: CoordinateType,
TO: CoordinateType,
Auto Trait Implementations
impl<TP, TO> RefUnwindSafe for EdgeIntersection<TP, TO> where
TO: RefUnwindSafe,
TP: RefUnwindSafe,
impl<TP, TO> Send for EdgeIntersection<TP, TO> where
TO: Send,
TP: Send,
impl<TP, TO> Sync for EdgeIntersection<TP, TO> where
TO: Sync,
TP: Sync,
impl<TP, TO> Unpin for EdgeIntersection<TP, TO> where
TO: Unpin,
TP: Unpin,
impl<TP, TO> UnwindSafe for EdgeIntersection<TP, TO> where
TO: UnwindSafe,
TP: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more