[−][src]Struct shapefile::record::point::Point
Point with only x
and y
coordinates
Fields
x: f64
y: f64
Methods
impl Point
[src]
impl Point
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 HasXY for Point
impl HasShapeType for Point
[src]
impl HasShapeType for Point
impl ConcreteShape for Point
[src]
impl ConcreteShape for Point
type ActualShape = Point
impl ConcreteShapeFromShape for Point
[src]
impl ConcreteShapeFromShape for Point
impl ConcreteReadableShape for Point
[src]
impl ConcreteReadableShape for Point
fn read_shape_content<T: Read>( | [src] |
impl WritableShape for Point
[src]
impl WritableShape for Point
fn size_in_bytes(&self) -> usize | [src] |
fn write_to<T: Write>(self, dest: &mut T) -> Result<(), Error> | [src] |
impl EsriShape for Point
[src]
impl EsriShape for Point
fn bbox(&self) -> BBox | [src] |
fn z_range(&self) -> [f64; 2] | [src] |
Should the Z range of this shape (maybe require computing it)
fn m_range(&self) -> [f64; 2] | [src] |
Should the M range of this shape (maybe require computing it)
impl PartialEq<Point> for Point
[src]
impl PartialEq<Point> for Point
impl Clone for Point
[src]
impl Clone for Point
fn clone(&self) -> Point | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl From<Point> for Shape
[src]
impl From<Point> for Shape
impl Default for Point
[src]
impl Default for Point
impl Copy for Point
[src]
impl Copy for Point
impl Display for Point
[src]
impl Display for Point
impl Debug for Point
[src]
impl Debug for Point
Auto Trait Implementations
Blanket Implementations
impl<S> ReadableShape for S where
S: ConcreteReadableShape,
[src]
impl<S> ReadableShape for S where
S: ConcreteReadableShape,
type ReadShape = <S as ConcreteShape>::ActualShape
fn read_from<T>(&mut T, i32) -> Result<<S as ReadableShape>::ReadShape, Error> where | [src] |
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)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 for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |