pub struct DirectedEdge_<T: TotalOrd, const N: usize> {
pub src: Point<T, N>,
pub dst: Point<T, N>,
}
Fields§
§src: Point<T, N>
§dst: Point<T, N>
Trait Implementations§
source§impl<T: Clone + TotalOrd, const N: usize> Clone for DirectedEdge_<T, N>
impl<T: Clone + TotalOrd, const N: usize> Clone for DirectedEdge_<T, N>
source§fn clone(&self) -> DirectedEdge_<T, N>
fn clone(&self) -> DirectedEdge_<T, N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, T: TotalOrd, const N: usize> From<&'a DirectedEdge_<T, N>> for LineSegmentView<'a, T, N>
impl<'a, T: TotalOrd, const N: usize> From<&'a DirectedEdge_<T, N>> for LineSegmentView<'a, T, N>
source§fn from(edge: &'a DirectedEdge_<T, N>) -> LineSegmentView<'a, T, N>
fn from(edge: &'a DirectedEdge_<T, N>) -> LineSegmentView<'a, T, N>
Converts to this type from the input type.
source§impl<T: TotalOrd, const N: usize> From<DirectedEdge_<T, N>> for LineSegment<T, N>
impl<T: TotalOrd, const N: usize> From<DirectedEdge_<T, N>> for LineSegment<T, N>
source§fn from(edge: DirectedEdge_<T, N>) -> LineSegment<T, N>
fn from(edge: DirectedEdge_<T, N>) -> LineSegment<T, N>
Converts to this type from the input type.
source§impl<'a, T> Intersects for &'a DirectedEdge_<T, 2>where
T: PolygonScalar,
impl<'a, T> Intersects for &'a DirectedEdge_<T, 2>where
T: PolygonScalar,
type Result = ILineSegment<'a, T>
fn intersect(self, other: &'a DirectedEdge_<T, 2>) -> Option<Self::Result>
source§impl<T: Ord + TotalOrd, const N: usize> Ord for DirectedEdge_<T, N>
impl<T: Ord + TotalOrd, const N: usize> Ord for DirectedEdge_<T, N>
source§fn cmp(&self, other: &DirectedEdge_<T, N>) -> Ordering
fn cmp(&self, other: &DirectedEdge_<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<T: PartialOrd + TotalOrd, const N: usize> PartialOrd for DirectedEdge_<T, N>
impl<T: PartialOrd + TotalOrd, const N: usize> PartialOrd for DirectedEdge_<T, N>
impl<T: Copy + TotalOrd, const N: usize> Copy for DirectedEdge_<T, N>
impl<T: Eq + TotalOrd, const N: usize> Eq for DirectedEdge_<T, N>
impl<T: TotalOrd, const N: usize> StructuralPartialEq for DirectedEdge_<T, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for DirectedEdge_<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for DirectedEdge_<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for DirectedEdge_<T, N>where
T: Send,
impl<T, const N: usize> Sync for DirectedEdge_<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for DirectedEdge_<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for DirectedEdge_<T, N>where
T: UnwindSafe,
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
)