Struct simplify_polyline::Point
source · [−]pub struct Point<T: ExtendedNumOps> {
pub x: T,
pub y: T,
}Expand description
A two-diemensional point, where the value of each coordinate must implement the ExtendedNumOps trait.
Example:
use simplify_polyline::*;
let point = Point { x: 1.0, y: 1.0 };Fields
x: TThe x coordinate value.
y: TThe y coordinate value.
Trait Implementations
sourceimpl<T: Clone + ExtendedNumOps> Clone for Point<T>
impl<T: Clone + ExtendedNumOps> Clone for Point<T>
sourceimpl<T: Debug + ExtendedNumOps> Debug for Point<T>
impl<T: Debug + ExtendedNumOps> Debug for Point<T>
sourceimpl<T: PartialEq + ExtendedNumOps> PartialEq<Point<T>> for Point<T>
impl<T: PartialEq + ExtendedNumOps> PartialEq<Point<T>> for Point<T>
impl<T: Copy + ExtendedNumOps> Copy for Point<T>
impl<T: Eq + ExtendedNumOps> Eq for Point<T>
impl<T: ExtendedNumOps> StructuralEq for Point<T>
impl<T: ExtendedNumOps> StructuralPartialEq for Point<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Point<T>where
T: RefUnwindSafe,
impl<T> Send for Point<T>where
T: Send,
impl<T> Sync for Point<T>where
T: Sync,
impl<T> Unpin for Point<T>where
T: Unpin,
impl<T> UnwindSafe for Point<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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