Struct boostvoronoi::Point [−][src]
pub struct Point<T> where
T: InputType, {
pub x: T,
pub y: T,
}
Expand description
A really simple 2d coordinate container type - integer only
Fields
x: T
y: T
Implementations
Trait Implementations
A copy conversion from &boostvoronoi::geometry::Point
to boostvoronoi::geometry::Point
This makes it possible to accept an Iter<Into<Point>>
and Iter<&Point>
in the same method.
let c = [1,2];
let p1:Point<i32> = Point::from(c);
let p2:Point<i32> = Point::from(&p1);
assert_eq!(p2.x,c[0]);
assert_eq!(p2.y,c[1]);
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
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