pub struct PrecisionModel { /* private fields */ }Implementations§
Source§impl PrecisionModel
impl PrecisionModel
pub const fn floating() -> Self
pub fn fixed(grid_size: f64) -> Self
pub const fn epsilon(self) -> f64
pub fn snap_value(self, value: f64) -> f64
pub fn snap_coord(self, coord: Coord) -> Coord
pub fn same_coord(self, a: Coord, b: Coord) -> bool
pub fn snap_line(self, line: &LineString) -> LineString
pub fn snap_ring(self, ring: &LinearRing) -> LinearRing
pub fn snap_polygon(self, polygon: &Polygon) -> Polygon
pub fn snap_multi_polygon(self, multi_polygon: &MultiPolygon) -> MultiPolygon
Trait Implementations§
Source§impl Clone for PrecisionModel
impl Clone for PrecisionModel
Source§fn clone(&self) -> PrecisionModel
fn clone(&self) -> PrecisionModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrecisionModel
Source§impl Debug for PrecisionModel
impl Debug for PrecisionModel
Source§impl Default for PrecisionModel
impl Default for PrecisionModel
Source§impl PartialEq for PrecisionModel
impl PartialEq for PrecisionModel
Source§fn eq(&self, other: &PrecisionModel) -> bool
fn eq(&self, other: &PrecisionModel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrecisionModel
Auto Trait Implementations§
impl Freeze for PrecisionModel
impl RefUnwindSafe for PrecisionModel
impl Send for PrecisionModel
impl Sync for PrecisionModel
impl Unpin for PrecisionModel
impl UnsafeUnpin for PrecisionModel
impl UnwindSafe for PrecisionModel
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