[−][src]Enum flexpolyline::Precision
Coordinate precision in the polyline
Represents how many digits are to be encoded after the decimal point, e.g. precision 3 would encode 4.456787 as 4.457.
Supported values: [0,16)
Variants
0 decimal digits
1 decimal digits
2 decimal digits
3 decimal digits
4 decimal digits
5 decimal digits
6 decimal digits
7 decimal digits
8 decimal digits
9 decimal digits
10 decimal digits
11 decimal digits
12 decimal digits
13 decimal digits
14 decimal digits
15 decimal digits
Methods
impl Precision
[src]
pub fn from_u32(digits: u32) -> Option<Precision>
[src]
Converts u32
to precision.
pub fn to_u32(self) -> u32
[src]
Converts precision to u32
.
Trait Implementations
impl Clone for Precision
[src]
impl Copy for Precision
[src]
impl Debug for Precision
[src]
impl Eq for Precision
[src]
impl Ord for Precision
[src]
fn cmp(&self, other: &Precision) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Precision> for Precision
[src]
impl PartialOrd<Precision> for Precision
[src]
fn partial_cmp(&self, other: &Precision) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Precision
[src]
impl StructuralPartialEq for Precision
[src]
Auto Trait Implementations
impl RefUnwindSafe for Precision
impl Send for Precision
impl Sync for Precision
impl Unpin for Precision
impl UnwindSafe for Precision
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,