pub struct Angle(pub i32);Expand description
Angles stored in 60,000ths of a degree. Used for DrawingML rotation and gradient angles.
Tuple Fields§
§0: i32Implementations§
Source§impl Angle
impl Angle
pub fn from_degrees(degrees: f64) -> Self
pub fn to_degrees(self) -> f64
Trait Implementations§
impl Copy for Angle
impl Eq for Angle
Source§impl Ord for Angle
impl Ord for Angle
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Angle
impl PartialOrd for Angle
impl StructuralPartialEq for Angle
Auto Trait Implementations§
impl Freeze for Angle
impl RefUnwindSafe for Angle
impl Send for Angle
impl Sync for Angle
impl Unpin for Angle
impl UnsafeUnpin 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