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);
Returns the value of the x dimension
Returns the value of the y dimension
Function that actually reads the ActualShape
from the source and returns it Read more
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
Should the Z range of this shape (maybe require computing it)
Should the M range of this shape (maybe require computing it)
Returns the "default value" for a type. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
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
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static