pub struct Point {
pub x: f64,
pub y: f64,
}Expand description
Point with only x and y coordinates
Fields§
§x: f64§y: f64Implementations§
Trait Implementations§
Source§impl ConcreteReadableShape for Point
impl ConcreteReadableShape for Point
Source§impl CoordTrait for &Point
impl CoordTrait for &Point
Source§fn dim(&self) -> Dimensions
fn dim(&self) -> Dimensions
Dimensions of the coordinate tuple
Source§fn nth_or_panic(&self, n: usize) -> Self::T
fn nth_or_panic(&self, n: usize) -> Self::T
Access the n’th (0-based) element of the CoordinateTuple.
May panic if n >= DIMENSION.
See also
nth().Source§unsafe fn nth_unchecked(&self, n: usize) -> Self::T
unsafe fn nth_unchecked(&self, n: usize) -> Self::T
Access the n’th (0-based) element of the CoordinateTuple.
May panic if n >= DIMENSION. Read more
Source§impl CoordTrait for Point
impl CoordTrait for Point
Source§fn dim(&self) -> Dimensions
fn dim(&self) -> Dimensions
Dimensions of the coordinate tuple
Source§fn nth_or_panic(&self, n: usize) -> Self::T
fn nth_or_panic(&self, n: usize) -> Self::T
Access the n’th (0-based) element of the CoordinateTuple.
May panic if n >= DIMENSION.
See also
nth().Source§unsafe fn nth_unchecked(&self, n: usize) -> Self::T
unsafe fn nth_unchecked(&self, n: usize) -> Self::T
Access the n’th (0-based) element of the CoordinateTuple.
May panic if n >= DIMENSION. Read more
Source§impl From<Coord> for Point
Available on crate feature geo-types only.
impl From<Coord> for Point
Available on crate feature
geo-types only.Source§fn from(c: Coordinate<f64>) -> Self
fn from(c: Coordinate<f64>) -> Self
Converts to this type from the input type.
Source§impl PointTrait for &Point
impl PointTrait for &Point
Source§type CoordType<'a> = &'a Point
where
Self: 'a
type CoordType<'a> = &'a Point where Self: 'a
The type of the underlying coordinate, which implements CoordTrait
Source§fn dim(&self) -> Dimensions
fn dim(&self) -> Dimensions
Dimensions of the coordinate tuple
Source§impl PointTrait for Point
impl PointTrait for Point
Source§type CoordType<'a> = &'a Point
where
Self: 'a
type CoordType<'a> = &'a Point where Self: 'a
The type of the underlying coordinate, which implements CoordTrait
Source§fn dim(&self) -> Dimensions
fn dim(&self) -> Dimensions
Dimensions of the coordinate tuple
Source§impl WritableShape for Point
impl WritableShape for Point
impl ConcreteShape for Point
impl Copy for Point
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl Freeze for Point
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more