pub struct Coord {
pub x: f64,
pub y: f64,
pub z: Option<f64>,
pub m: Option<f64>,
}Expand description
A single coordinate. z and m are Options so we can distinguish
“this geometry has no Z dimension” from “Z is invalid”. We do not use
NaN as a sentinel — that’s a GDB-specific quirk handled inside its reader.
Fields§
§x: f64§y: f64§z: Option<f64>§m: Option<f64>Implementations§
Trait Implementations§
impl Copy for Coord
impl StructuralPartialEq for Coord
Auto Trait Implementations§
impl Freeze for Coord
impl RefUnwindSafe for Coord
impl Send for Coord
impl Sync for Coord
impl Unpin for Coord
impl UnsafeUnpin for Coord
impl UnwindSafe for Coord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more