pub enum CompassReference {
TrueNorth,
MagneticNorth,
East,
}
Expand description
The “zero” reference point for a compass needle
Variants§
TrueNorth
0 is True North - the geometric north pole (axis of rotation)
MagneticNorth
0 is Magnetic North - the direction that a compass needle points
East
0 is East - Used mostly for X/Y cartesian planes where angles are 0 to the right
Trait Implementations§
Source§impl Clone for CompassReference
impl Clone for CompassReference
Source§fn clone(&self) -> CompassReference
fn clone(&self) -> CompassReference
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CompassReference
impl Debug for CompassReference
Source§impl Default for CompassReference
impl Default for CompassReference
Source§fn default() -> CompassReference
fn default() -> CompassReference
Returns the “default value” for a type. Read more
Source§impl FromUnits<Angle> for CompassReference
impl FromUnits<Angle> for CompassReference
Source§impl PartialEq for CompassReference
impl PartialEq for CompassReference
impl Copy for CompassReference
impl Eq for CompassReference
impl StructuralPartialEq for CompassReference
Auto Trait Implementations§
impl Freeze for CompassReference
impl RefUnwindSafe for CompassReference
impl Send for CompassReference
impl Sync for CompassReference
impl Unpin for CompassReference
impl UnwindSafe for CompassReference
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