pub enum GravityError {
Unclear(u8),
Repeated,
}Expand description
Why AxisMap::from_gravity could not decide.
Variants§
Unclear(u8)
This pose’s reading does not point clearly along one sensor axis
(0 = x_up, 1 = y_up, 2 = z_up). Hold the board straighter.
Repeated
Two poses picked the same sensor axis: the board was held the same way twice.
Trait Implementations§
Source§impl Clone for GravityError
impl Clone for GravityError
Source§fn clone(&self) -> GravityError
fn clone(&self) -> GravityError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GravityError
impl Debug for GravityError
Source§impl Format for GravityError
impl Format for GravityError
Source§impl PartialEq for GravityError
impl PartialEq for GravityError
impl Copy for GravityError
impl Eq for GravityError
impl StructuralPartialEq for GravityError
Auto Trait Implementations§
impl Freeze for GravityError
impl RefUnwindSafe for GravityError
impl Send for GravityError
impl Sync for GravityError
impl Unpin for GravityError
impl UnsafeUnpin for GravityError
impl UnwindSafe for GravityError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)