Struct rgeometry::data::DirectedEdge
source · [−]pub struct DirectedEdge<'a, T, const N: usize> {
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> DirectedEdge<'a, T, 2>
impl<'a, T> DirectedEdge<'a, T, 2>
pub fn contains(self, pt: &Point<T, 2>) -> bool where
T: PolygonScalar,
Trait Implementations
sourceimpl<'a, T, const N: usize> Clone for DirectedEdge<'a, T, N>
impl<'a, T, const N: usize> Clone for DirectedEdge<'a, T, N>
sourceimpl<'a, T: Debug, const N: usize> Debug for DirectedEdge<'a, T, N>
impl<'a, T: Debug, const N: usize> Debug for DirectedEdge<'a, T, N>
sourceimpl<'a, T: Ord, const N: usize> From<&'_ DirectedEdge<'a, T, N>> for LineSegmentView<'a, T, N>
impl<'a, T: Ord, 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: Ord, const N: usize> From<DirectedEdge<'a, T, N>> for LineSegmentView<'a, T, N>
impl<'a, T: Ord, 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_usize>> for &LineSoS<'_, T, 2> where
T: PolygonScalar,
impl<T> Intersects<DirectedEdge<'_, T, 2_usize>> for &LineSoS<'_, T, 2> where
T: PolygonScalar,
type Result = ILineLineSegmentSoS
fn intersect(self, other: DirectedEdge<'_, T, 2>) -> Option<Self::Result>
sourceimpl<T> Intersects<DirectedEdge<'_, T, 2_usize>> for &HalfLineSoS<'_, T, 2> where
T: PolygonScalar,
impl<T> Intersects<DirectedEdge<'_, T, 2_usize>> for &HalfLineSoS<'_, T, 2> where
T: PolygonScalar,
type Result = IHalfLineLineSegmentSoS
fn intersect(self, other: DirectedEdge<'_, T, 2>) -> Option<Self::Result>
sourceimpl<'a, T> Intersects<DirectedEdge<'a, T, 2_usize>> for DirectedEdge<'a, T, 2> where
T: PolygonScalar,
impl<'a, T> Intersects<DirectedEdge<'a, T, 2_usize>> 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, const N: usize> Ord for DirectedEdge<'a, T, N>
impl<'a, T: Ord, const N: usize> Ord for DirectedEdge<'a, T, N>
sourceimpl<'a, T: PartialEq, const N: usize> PartialEq<DirectedEdge<'a, T, N>> for DirectedEdge<'a, T, N>
impl<'a, T: PartialEq, 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, const N: usize> PartialOrd<DirectedEdge<'a, T, N>> for DirectedEdge<'a, T, N>
impl<'a, T: PartialOrd, 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, const N: usize> Copy for DirectedEdge<'a, T, N>
impl<'a, T: Eq, const N: usize> Eq for DirectedEdge<'a, T, N>
impl<'a, T, const N: usize> StructuralEq for DirectedEdge<'a, T, N>
impl<'a, T, 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
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