Enum libreda_db::prelude::REdgeIntersection
source · [−]pub enum REdgeIntersection<T> where
T: CoordinateType, {
None,
Point(Point<T>),
EndPoint(Point<T>),
Overlap(REdge<T>),
}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<T>)
Intersection in a single point but not on an endpoint of an edge.
EndPoint(Point<T>)
Intersection in an endpoint of an edge.
Overlap(REdge<T>)
Full or partial overlap.
Trait Implementations
sourceimpl<T> Clone for REdgeIntersection<T> where
T: Clone + CoordinateType,
impl<T> Clone for REdgeIntersection<T> where
T: Clone + CoordinateType,
sourcefn clone(&self) -> REdgeIntersection<T>
fn clone(&self) -> REdgeIntersection<T>
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<T> Debug for REdgeIntersection<T> where
T: Debug + CoordinateType,
impl<T> Debug for REdgeIntersection<T> where
T: Debug + CoordinateType,
sourceimpl<T> PartialEq<REdgeIntersection<T>> for REdgeIntersection<T> where
T: PartialEq<T> + CoordinateType,
impl<T> PartialEq<REdgeIntersection<T>> for REdgeIntersection<T> where
T: PartialEq<T> + CoordinateType,
sourcefn eq(&self, other: &REdgeIntersection<T>) -> bool
fn eq(&self, other: &REdgeIntersection<T>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &REdgeIntersection<T>) -> bool
fn ne(&self, other: &REdgeIntersection<T>) -> bool
This method tests for !=.
impl<T> Copy for REdgeIntersection<T> where
T: Copy + CoordinateType,
impl<T> Eq for REdgeIntersection<T> where
T: Eq + CoordinateType,
impl<T> StructuralEq for REdgeIntersection<T> where
T: CoordinateType,
impl<T> StructuralPartialEq for REdgeIntersection<T> where
T: CoordinateType,
Auto Trait Implementations
impl<T> RefUnwindSafe for REdgeIntersection<T> where
T: RefUnwindSafe,
impl<T> Send for REdgeIntersection<T> where
T: Send,
impl<T> Sync for REdgeIntersection<T> where
T: Sync,
impl<T> Unpin for REdgeIntersection<T> where
T: Unpin,
impl<T> UnwindSafe for REdgeIntersection<T> where
T: 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