pub enum FormatKind {
Decimal,
DmsSigned,
DmsLabeled,
DmsBare,
}Expand description
| Variant | Example |
|---|---|
Decimal | 48.8582 |
DmsSigned | 48° 51′ 29.6″ |
DmsLabeled | 48° 51′ 29.6″ N |
DmsBare | +048:51:29.600000 |
Variants§
Decimal
Format as decimal degrees, e.g. 48.8582. This format has a default precision
of 8 decimal places.
DmsSigned
Format as degrees with Unicode symbols, e.g. -48° 51′ 29.600000″. This format
has a default precision of 6 decimal places.
DmsLabeled
Format as degrees with a cardinal-direction label, e.g. 48° 51′ 29.600000″ N.
This format has a default precision of 6 decimal places.
DmsBare
Format as degrees with no symbols, e.g. 048:51:29.600000. This format has a
minimum precision of 4 decimal places, and a default precision of 6.
Trait Implementations§
Source§impl Clone for FormatKind
impl Clone for FormatKind
Source§fn clone(&self) -> FormatKind
fn clone(&self) -> FormatKind
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 moreSource§impl Debug for FormatKind
impl Debug for FormatKind
Source§impl Default for FormatKind
impl Default for FormatKind
Source§fn default() -> FormatKind
fn default() -> FormatKind
Returns the “default value” for a type. Read more
Source§impl From<FormatKind> for FormatOptions
impl From<FormatKind> for FormatOptions
Source§fn from(kind: FormatKind) -> Self
fn from(kind: FormatKind) -> Self
Converts to this type from the input type.
Source§impl Hash for FormatKind
impl Hash for FormatKind
Source§impl PartialEq for FormatKind
impl PartialEq for FormatKind
Source§fn eq(&self, other: &FormatKind) -> bool
fn eq(&self, other: &FormatKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FormatKind
impl Eq for FormatKind
impl StructuralPartialEq for FormatKind
Auto Trait Implementations§
impl Freeze for FormatKind
impl RefUnwindSafe for FormatKind
impl Send for FormatKind
impl Sync for FormatKind
impl Unpin for FormatKind
impl UnsafeUnpin for FormatKind
impl UnwindSafe for FormatKind
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