Struct boostvoronoi::geometry::Point [−][src]
pub struct Point<T: InputType> { pub x: T, pub y: T, }
Expand description
A really simple 2d coordinate container type - integer only
Fields
x: T
y: T
Trait Implementations
Converts to boostvoronoi::geometry::Point from &[T;2]
let c = [1,2]; let p:Point<i32> = Point::from(&c); assert_eq!(p.x,c[0]); assert_eq!(p.y,c[1]);
Converts to boostvoronoi::geometry::Point from [T;2]
let c = [1,2]; let p:Point<i32> = Point::from(c); assert_eq!(p.x,c[0]); assert_eq!(p.y,c[1]);
Auto Trait Implementations
impl<T> RefUnwindSafe for Point<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Point<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more