#[non_exhaustive]pub enum GravityBy {
Family,
Pad,
Coast,
}Expand description
How an accelerometer’s Gravity was settled.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Family
Its family says so, and its pad and its coast, where they say, agree.
Pad
Its pad: about 1 g, or about 0, where its family doesn’t say; its coast, where it says, agrees.
Coast
Its coast to apogee: about 0, or about −1 g, where neither its family nor its pad says.
Implementations§
Trait Implementations§
impl Copy for GravityBy
Source§impl<'de> Deserialize<'de> for GravityBy
impl<'de> Deserialize<'de> for GravityBy
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
impl Eq for GravityBy
Source§impl Ord for GravityBy
impl Ord for GravityBy
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 GravityBy
impl PartialOrd for GravityBy
impl StructuralPartialEq for GravityBy
Auto Trait Implementations§
impl Freeze for GravityBy
impl RefUnwindSafe for GravityBy
impl Send for GravityBy
impl Sync for GravityBy
impl Unpin for GravityBy
impl UnsafeUnpin for GravityBy
impl UnwindSafe for GravityBy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.