#[non_exhaustive]pub enum AngleUnits {
Radians,
Degrees,
Minutes,
Seconds,
Revolutions,
Mils,
}
Expand description
Represents a specific Planar Angle unit - SI or otherwise
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.
Radians
SI Base Unit for Planar Angle - Radians, the unit radius of a circle.
There are tau
Radians across a full circle
Degrees
Derived unit for Planar Angle - Degrees.
There are 360 degrees across a full circle
Minutes
Derived unit for Planar Angle - Minutes - the first division of a degree There are 60 minutes in a degree.
Seconds
Derived unit for Planar Angle - Seconds - the second division of a degree There are 60 seconds in a minute.
Revolutions
Derived unit for Planar Angle - Revolution (turn) - a full circuit of a circle There are 360 degrees in a revolution
Mils
Derived unit for Planar Angle - NATO Mil There are 6400 mils in a turn/revolution
Trait Implementations§
Source§impl Clone for AngleUnits
impl Clone for AngleUnits
Source§fn clone(&self) -> AngleUnits
fn clone(&self) -> AngleUnits
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 AngleUnits
impl Debug for AngleUnits
Source§impl Default for AngleUnits
impl Default for AngleUnits
Source§fn default() -> AngleUnits
fn default() -> AngleUnits
Returns the “default value” for a type. Read more
Source§impl FromUnits<f32> for AngleUnits
impl FromUnits<f32> for AngleUnits
Source§impl FromUnits<f64> for AngleUnits
impl FromUnits<f64> for AngleUnits
Source§impl PartialEq for AngleUnits
impl PartialEq for AngleUnits
Source§impl Unit<AngleUnits> for &Angle
impl Unit<AngleUnits> for &Angle
Source§impl Unit<AngleUnits> for &mut Angle
impl Unit<AngleUnits> for &mut Angle
Source§impl Unit<AngleUnits> for Angle
impl Unit<AngleUnits> for Angle
Source§impl UnitStruct<AngleUnits> for &Angle
impl UnitStruct<AngleUnits> for &Angle
Source§impl UnitStruct<AngleUnits> for &mut Angle
impl UnitStruct<AngleUnits> for &mut Angle
Source§impl UnitStruct<AngleUnits> for Angle
impl UnitStruct<AngleUnits> for Angle
impl Copy for AngleUnits
impl Eq for AngleUnits
impl StructuralPartialEq for AngleUnits
Auto Trait Implementations§
impl Freeze for AngleUnits
impl RefUnwindSafe for AngleUnits
impl Send for AngleUnits
impl Sync for AngleUnits
impl Unpin for AngleUnits
impl UnwindSafe for AngleUnits
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