pub struct Cursor<'a, T> { /* private fields */ }
Implementations
sourceimpl<'a, T> Cursor<'a, T>
impl<'a, T> Cursor<'a, T>
pub fn point_id(self) -> PointId
pub fn prev(self) -> Cursor<'a, T>
pub fn next(self) -> Cursor<'a, T>
pub fn point(self: Cursor<'a, T>) -> &'a Point<T, 2>
pub fn move_next(&mut self)
pub fn move_prev(&mut self)
pub fn is_ear(&self) -> bool where
T: PolygonScalar,
pub fn orientation(&self) -> Orientation where
T: PolygonScalar,
pub fn is_colinear(&self) -> bool where
T: PolygonScalar,
pub fn to(self: Cursor<'a, T>, end: Bound<Cursor<'a, T>>) -> CursorIter<'a, T>ⓘNotable traits for CursorIter<'a, T>impl<'a, T> Iterator for CursorIter<'a, T> type Item = Cursor<'a, T>;
Methods from Deref<Target = Point<T, 2>>
pub fn as_vec(&self) -> &Vector<T, N>
pub fn squared_euclidean_distance<F>(&self, rhs: &Point<T, N>) -> F where
T: Clone + Into<F>,
F: NumOps + Clone + Sum,
pub fn map<U, F>(&self, f: F) -> Point<U, N> where
T: Clone,
F: Fn(T) -> U,
pub fn cast<U>(&self) -> Point<U, N> where
T: Clone + Into<U>,
pub fn to_float(&self) -> Point<OrderedFloat<f64>, N> where
T: Clone + Into<f64>,
Trait Implementations
impl<'a, T> Copy for Cursor<'a, T>
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Cursor<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for Cursor<'a, T> where
T: Sync,
impl<'a, T> Sync for Cursor<'a, T> where
T: Sync,
impl<'a, T> Unpin for Cursor<'a, T>
impl<'a, T> UnwindSafe for Cursor<'a, T> 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