pub enum Angle<T: Float> {
Deg(T),
Rad(T),
}Expand description
Generic floating-point angle, can be represented in Degrees or Radians.
Variants§
Implementations§
Trait Implementations§
impl<T: Copy + Float> Copy for Angle<T>
impl<T: Eq + Float> Eq for Angle<T>
impl<T: Float> StructuralPartialEq for Angle<T>
Auto Trait Implementations§
impl<T> Freeze for Angle<T>where
T: Freeze,
impl<T> RefUnwindSafe for Angle<T>where
T: RefUnwindSafe,
impl<T> Send for Angle<T>where
T: Send,
impl<T> Sync for Angle<T>where
T: Sync,
impl<T> Unpin for Angle<T>where
T: Unpin,
impl<T> UnsafeUnpin for Angle<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Angle<T>where
T: UnwindSafe,
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