#[repr(i32)]pub enum LocSource {
LocUnset = 0,
LocManual = 1,
LocInternal = 2,
LocExternal = 3,
}Expand description
How the location was acquired: manual, onboard GPS, external (EUD) GPS
Variants§
LocUnset = 0
TODO: REPLACE
LocManual = 1
TODO: REPLACE
LocInternal = 2
TODO: REPLACE
LocExternal = 3
TODO: REPLACE
Implementations§
Source§impl LocSource
impl LocSource
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LocSource
impl<'de> Deserialize<'de> for LocSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IntoEnumIterator for LocSource
impl IntoEnumIterator for LocSource
type Iterator = LocSourceIter
fn iter() -> LocSourceIter ⓘ
Source§impl Ord for LocSource
impl Ord for LocSource
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for LocSource
impl PartialOrd for LocSource
impl Copy for LocSource
impl Eq for LocSource
impl StructuralPartialEq for LocSource
Auto Trait Implementations§
impl Freeze for LocSource
impl RefUnwindSafe for LocSource
impl Send for LocSource
impl Sync for LocSource
impl Unpin for LocSource
impl UnsafeUnpin for LocSource
impl UnwindSafe for LocSource
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