pub struct Point {
pub x: f64,
pub y: f64,
}
Point with only x
and y
coordinates
Creates a new point
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);
Function that actually reads the ActualShape
from the source
and returns it Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more
Should return the Z range of this shape
Should return the M range of this shape
Returns the value of the x dimension
Returns the value of the y dimension
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
The type returned in the event of a conversion error.
Returns the size in bytes that the Shapes will take once written.
Does not include the shapetype Read more
Writes the shape to the dest
impl<T> Any for T where
T: 'static + ?Sized,
[src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
[src]
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String
. Read more
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.