pub enum Location {
Address(String),
LatLng(f64, f64),
}
Variants§
Implementations§
Source§impl Location
impl Location
pub fn from_address(address: String) -> Self
pub fn from_lat_lng(lat: f64, lng: f64) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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