[−][src]Struct shapefile::record::point::Point
Point with only x
and y
coordinates
Fields
x: f64
y: f64
Methods
impl Point
[src]
pub fn new(x: f64, y: f64) -> Self
[src]
Creates a new point
Examples
use shapefile::Point; let point = Point::new(1.0, 42.0); assert_eq!(point.x, 1.0); assert_eq!(point.y, 42.0);
use shapefile::Point; let point = Point::default(); assert_eq!(point.x, 0.0); assert_eq!(point.y, 0.0);
Trait Implementations
impl Clone for Point
[src]
impl ConcreteReadableShape for Point
[src]
impl ConcreteShape for Point
[src]
impl Copy for Point
[src]
impl Debug for Point
[src]
impl Default for Point
[src]
impl Display for Point
[src]
impl EsriShape for Point
[src]
impl From<Coordinate<f64>> for Point
[src]
impl From<Point<f64>> for Point
[src]
impl From<Point> for Point<f64>
[src]
impl From<Point> for Coordinate<f64>
[src]
impl From<Point> for Shape
[src]
impl HasShapeType for Point
[src]
impl HasXY for Point
[src]
impl MultipointShape<Point> for Point
[src]
fn point<I: SliceIndex<[Point]>>(
&self,
index: I
) -> Option<&<I as SliceIndex<[Point]>>::Output>
[src]
&self,
index: I
) -> Option<&<I as SliceIndex<[Point]>>::Output>
fn points(&self) -> &[Point]
[src]
impl PartialEq<Point> for Point
[src]
impl StructuralPartialEq for Point
[src]
impl TryFrom<Shape> for Point
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(shape: Shape) -> Result<Self, Self::Error>
[src]
impl WritableShape for Point
[src]
Auto Trait Implementations
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S> ReadableShape for S where
S: ConcreteReadableShape,
[src]
S: ConcreteReadableShape,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,