pub enum Angle {
Degree(Deg),
Radiant(Rad),
Gradiant(Grad),
Turn(Turn),
}Expand description
Variants§
Implementations§
Source§impl Angle
impl Angle
Sourcepub const fn is_degree(&self) -> bool
pub const fn is_degree(&self) -> bool
Returns true if the enum is Angle::Degree otherwise false
Sourcepub const fn is_radiant(&self) -> bool
pub const fn is_radiant(&self) -> bool
Returns true if the enum is Angle::Radiant otherwise false
Sourcepub const fn is_gradiant(&self) -> bool
pub const fn is_gradiant(&self) -> bool
Returns true if the enum is Angle::Gradiant otherwise false
Trait Implementations§
Source§impl DegreeStorage for Angle
impl DegreeStorage for Angle
Source§impl GradiantStorage for Angle
impl GradiantStorage for Angle
Source§impl RadiantStorage for Angle
impl RadiantStorage for Angle
Source§impl TurnStorage for Angle
impl TurnStorage 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 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