pub struct PointZ {
pub x: f64,
pub y: f64,
pub z: f64,
pub m: f64,
}
Creates a new pointZ
use shapefile::{PointZ, NO_DATA};
let point = PointZ::new(1.0, 42.0, 13.37, NO_DATA);
assert_eq!(point.x, 1.0);
assert_eq!(point.y, 42.0);
assert_eq!(point.z, 13.37);
assert_eq!(point.m, NO_DATA);
Returns the value of the x dimension
Returns the value of the y dimension
Returns a non mutable slice to the points Read more
Returns a non mutable slice of the parts as written in the file: Read more
Returns the slice of points corresponding to part n°ìndex
if the shape actually has multiple parts Read more
Returns an iterator over the parts of a MultipartShape Read more
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
Performs copy-assignment from source
. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts the given value to a String
. 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
🔬 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
🔬 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
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static