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§
source§impl<T: TotalOrd> DirectedEdge<'_, T, 2>
impl<T: TotalOrd> DirectedEdge<'_, T, 2>
pub fn contains(self, pt: &Point<T, 2>) -> boolwhere
T: PolygonScalar,
Trait Implementations§
source§impl<'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>
source§fn 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.
source§impl<'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>
source§fn 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.
source§impl<T> Intersects<DirectedEdge<'_, T>> for &HalfLineSoS<'_, T>where
T: PolygonScalar,
impl<T> Intersects<DirectedEdge<'_, T>> for &HalfLineSoS<'_, T>where
T: PolygonScalar,
type Result = IHalfLineLineSegmentSoS
fn intersect(self, other: DirectedEdge<'_, T>) -> Option<Self::Result>
source§impl<T> Intersects<DirectedEdge<'_, T>> for &LineSoS<'_, T>where
T: PolygonScalar,
impl<T> Intersects<DirectedEdge<'_, T>> for &LineSoS<'_, T>where
T: PolygonScalar,
type Result = ILineLineSegmentSoS
fn intersect(self, other: DirectedEdge<'_, T>) -> Option<Self::Result>
source§impl<'a, T> Intersects for DirectedEdge<'a, T, 2>where
T: PolygonScalar,
impl<'a, T> Intersects for DirectedEdge<'a, T, 2>where
T: PolygonScalar,
type Result = ILineSegment<'a, T>
fn intersect(self, other: DirectedEdge<'a, T, 2>) -> Option<Self::Result>
source§impl<'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>
source§fn cmp(&self, other: &DirectedEdge<'a, T, N>) -> Ordering
fn cmp(&self, other: &DirectedEdge<'a, T, N>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a, T: PartialOrd + TotalOrd, const N: usize> PartialOrd for DirectedEdge<'a, T, N>
impl<'a, T: PartialOrd + TotalOrd, const N: usize> PartialOrd for DirectedEdge<'a, T, N>
impl<T: TotalOrd, const N: usize> Copy for DirectedEdge<'_, T, N>
impl<'a, T: Eq + TotalOrd, const N: usize> Eq 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> Freeze for DirectedEdge<'a, T, N>
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§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)