Struct circadia::GlobalPosition
source · pub struct GlobalPosition { /* private fields */ }
Expand description
Represents a position on the earth.
Implementations
sourceimpl GlobalPosition
impl GlobalPosition
sourcepub fn at(lat: f64, lng: f64) -> Self
pub fn at(lat: f64, lng: f64) -> Self
Create a new GlobalPosition at the given latitude and longitude
sourcepub fn lng_timezone(&self) -> FixedOffset
pub fn lng_timezone(&self) -> FixedOffset
Returns a FixedOffset timezone calculated from this location’s longitude
Trait Implementations
sourceimpl Clone for GlobalPosition
impl Clone for GlobalPosition
sourcefn clone(&self) -> GlobalPosition
fn clone(&self) -> GlobalPosition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for GlobalPosition
impl Send for GlobalPosition
impl Sync for GlobalPosition
impl Unpin for GlobalPosition
impl UnwindSafe for GlobalPosition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more