pub enum Angle {
Degree,
Radian,
Gradian,
ArcMinute,
ArcSecond,
Custom(f64, Box<Angle>),
}Variants§
Implementations§
Source§impl Angle
impl Angle
pub fn convert_to(self, to: Self) -> Self
pub fn to_radians(&self) -> f64
pub fn to_degrees(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Angle
impl RefUnwindSafe for Angle
impl Send for Angle
impl Sync for Angle
impl Unpin for Angle
impl UnwindSafe for Angle
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