Struct yew_hooks::UseGeolocationState
source · [−]pub struct UseGeolocationState {
pub loading: bool,
pub accuracy: f64,
pub altitude: Option<f64>,
pub altitude_accuracy: Option<f64>,
pub heading: Option<f64>,
pub latitude: f64,
pub longitude: f64,
pub speed: Option<f64>,
pub timestamp: f64,
pub error: Option<PositionError>,
}Fields
loading: boolaccuracy: f64altitude: Option<f64>altitude_accuracy: Option<f64>heading: Option<f64>latitude: f64longitude: f64speed: Option<f64>timestamp: f64error: Option<PositionError>Trait Implementations
sourceimpl Clone for UseGeolocationState
impl Clone for UseGeolocationState
sourcefn clone(&self) -> UseGeolocationState
fn clone(&self) -> UseGeolocationState
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 more
sourceimpl Default for UseGeolocationState
impl Default for UseGeolocationState
sourcefn default() -> UseGeolocationState
fn default() -> UseGeolocationState
Returns the “default value” for a type. Read more
sourceimpl PartialEq<UseGeolocationState> for UseGeolocationState
impl PartialEq<UseGeolocationState> for UseGeolocationState
sourcefn eq(&self, other: &UseGeolocationState) -> bool
fn eq(&self, other: &UseGeolocationState) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &UseGeolocationState) -> bool
fn ne(&self, other: &UseGeolocationState) -> bool
This method tests for !=.
impl StructuralPartialEq for UseGeolocationState
Auto Trait Implementations
impl RefUnwindSafe for UseGeolocationState
impl !Send for UseGeolocationState
impl !Sync for UseGeolocationState
impl Unpin for UseGeolocationState
impl UnwindSafe for UseGeolocationState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
sourcepub fn into_prop_value(self) -> Option<T>
pub fn into_prop_value(self) -> Option<T>
Convert self to a value of a Properties struct.
sourceimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
sourcepub fn into_prop_value(self) -> T
pub fn into_prop_value(self) -> T
Convert self to a value of a Properties struct.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more