pub enum Accuracy {
Meters(f64),
Feet(f64),
}Expand description
Represents the accuracy of a GPS measurement, when being given to a location search.
Variants§
Meters(f64)
Location accurate to the given number of meters.
Feet(f64)
Location accurate to the given number of feet.
Trait Implementations§
Source§impl Display for Accuracy
Display impl to make to_string() format the enum for sending to Twitter. This turns Meters
into the contained number by itself, and Feet into the number suffixed by "ft".
impl Display for Accuracy
Display impl to make to_string() format the enum for sending to Twitter. This turns Meters
into the contained number by itself, and Feet into the number suffixed by "ft".
impl Copy for Accuracy
Auto Trait Implementations§
impl Freeze for Accuracy
impl RefUnwindSafe for Accuracy
impl Send for Accuracy
impl Sync for Accuracy
impl Unpin for Accuracy
impl UnwindSafe for Accuracy
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