[−][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 HasXY for Point
[src]
impl HasShapeType for Point
[src]
impl ConcreteShape for Point
[src]
impl ConcreteReadableShape for Point
[src]
impl WritableShape for Point
[src]
fn size_in_bytes(&self) -> usize
[src]
fn write_to<T: Write>(self, dest: &mut T) -> Result<(), Error>
[src]
impl EsriShape for Point
[src]
fn bbox(&self) -> BBox
[src]
fn z_range(&self) -> [f64; 2]
[src]
Should return the Z range of this shape (maybe require computing it)
fn m_range(&self) -> [f64; 2]
[src]
Should return the M range of this shape (maybe require computing it)
impl Clone for Point
[src]
fn clone(&self) -> Point
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Point
[src]
impl From<Point> for Point<f64>
[src]
impl From<Point<f64>> for Point
[src]
impl From<Coordinate<f64>> for Point
[src]
fn from(c: Coordinate<f64>) -> Self
[src]
impl From<Point> for Coordinate<f64>
[src]
impl From<Point> for Shape
[src]
impl PartialEq<Point> for Point
[src]
impl Copy for Point
[src]
impl Display for Point
[src]
impl Debug for Point
[src]
impl TryFrom<Shape> for Point
[src]
Auto Trait Implementations
impl Sync for Point
impl Send for Point
impl Unpin for Point
impl RefUnwindSafe for Point
impl UnwindSafe for Point
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,