Struct rgeometry::data::DirectedEdge
source · [−]pub struct DirectedEdge<'a, T: TotalOrd, const N: usize = 2> {
pub src: &'a Point<T, N>,
pub dst: &'a Point<T, N>,
}
Fields
src: &'a Point<T, N>
dst: &'a Point<T, N>
Implementations
sourceimpl<'a, T: TotalOrd> DirectedEdge<'a, T, 2>
impl<'a, T: TotalOrd> DirectedEdge<'a, T, 2>
pub fn contains(self, pt: &Point<T, 2>) -> bool where
T: PolygonScalar,
Trait Implementations
sourceimpl<'a, T: TotalOrd, const N: usize> Clone for DirectedEdge<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> Clone for DirectedEdge<'a, T, N>
sourceimpl<'a, T: TotalOrd, const N: usize> From<&DirectedEdge<'a, T, N>> for LineSegmentView<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> From<&DirectedEdge<'a, T, N>> for LineSegmentView<'a, T, N>
sourcefn from(edge: &DirectedEdge<'a, T, N>) -> LineSegmentView<'a, T, N>
fn from(edge: &DirectedEdge<'a, T, N>) -> LineSegmentView<'a, T, N>
Converts to this type from the input type.
sourceimpl<'a, T: TotalOrd, const N: usize> From<DirectedEdge<'a, T, N>> for LineSegmentView<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> From<DirectedEdge<'a, T, N>> for LineSegmentView<'a, T, N>
sourcefn from(edge: DirectedEdge<'a, T, N>) -> LineSegmentView<'a, T, N>
fn from(edge: DirectedEdge<'a, T, N>) -> LineSegmentView<'a, T, N>
Converts to this type from the input type.
sourceimpl<T> Intersects<DirectedEdge<'_, T, 2>> for &HalfLineSoS<'_, T> where
T: PolygonScalar,
impl<T> Intersects<DirectedEdge<'_, T, 2>> for &HalfLineSoS<'_, T> where
T: PolygonScalar,
type Result = IHalfLineLineSegmentSoS
fn intersect(self, other: DirectedEdge<'_, T>) -> Option<Self::Result>
sourceimpl<T> Intersects<DirectedEdge<'_, T, 2>> for &LineSoS<'_, T> where
T: PolygonScalar,
impl<T> Intersects<DirectedEdge<'_, T, 2>> for &LineSoS<'_, T> where
T: PolygonScalar,
type Result = ILineLineSegmentSoS
fn intersect(self, other: DirectedEdge<'_, T>) -> Option<Self::Result>
sourceimpl<'a, T> Intersects<DirectedEdge<'a, T, 2>> for DirectedEdge<'a, T, 2> where
T: PolygonScalar,
impl<'a, T> Intersects<DirectedEdge<'a, T, 2>> for DirectedEdge<'a, T, 2> where
T: PolygonScalar,
type Result = ILineSegment<'a, T>
fn intersect(self, other: DirectedEdge<'a, T, 2>) -> Option<Self::Result>
sourceimpl<'a, T: Ord + TotalOrd, const N: usize> Ord for DirectedEdge<'a, T, N>
impl<'a, T: Ord + TotalOrd, const N: usize> Ord for DirectedEdge<'a, T, N>
sourcefn cmp(&self, other: &DirectedEdge<'a, T, N>) -> Ordering
fn cmp(&self, other: &DirectedEdge<'a, T, N>) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'a, T: PartialEq + TotalOrd, const N: usize> PartialEq<DirectedEdge<'a, T, N>> for DirectedEdge<'a, T, N>
impl<'a, T: PartialEq + TotalOrd, const N: usize> PartialEq<DirectedEdge<'a, T, N>> for DirectedEdge<'a, T, N>
sourcefn eq(&self, other: &DirectedEdge<'a, T, N>) -> bool
fn eq(&self, other: &DirectedEdge<'a, T, N>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DirectedEdge<'a, T, N>) -> bool
fn ne(&self, other: &DirectedEdge<'a, T, N>) -> bool
This method tests for !=
.
sourceimpl<'a, T: PartialOrd + TotalOrd, const N: usize> PartialOrd<DirectedEdge<'a, T, N>> for DirectedEdge<'a, T, N>
impl<'a, T: PartialOrd + TotalOrd, const N: usize> PartialOrd<DirectedEdge<'a, T, N>> for DirectedEdge<'a, T, N>
sourcefn partial_cmp(&self, other: &DirectedEdge<'a, T, N>) -> Option<Ordering>
fn partial_cmp(&self, other: &DirectedEdge<'a, T, N>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<'a, T: TotalOrd, const N: usize> Copy for DirectedEdge<'a, T, N>
impl<'a, T: Eq + TotalOrd, const N: usize> Eq for DirectedEdge<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> StructuralEq for DirectedEdge<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> StructuralPartialEq for DirectedEdge<'a, T, N>
Auto Trait Implementations
impl<'a, T, const N: usize> RefUnwindSafe for DirectedEdge<'a, T, N> where
T: RefUnwindSafe,
impl<'a, T, const N: usize> Send for DirectedEdge<'a, T, N> where
T: Sync,
impl<'a, T, const N: usize> Sync for DirectedEdge<'a, T, N> where
T: Sync,
impl<'a, T, const N: usize> Unpin for DirectedEdge<'a, T, N>
impl<'a, T, const N: usize> UnwindSafe for DirectedEdge<'a, T, N> where
T: RefUnwindSafe,
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