pub enum Angle {
Deg(f32),
Rad(f32),
Turn(f32),
}Expand description
A CSS <angle> value.
Variants§
Deg(f32)
Degrees (deg). 360 per full turn.
Rad(f32)
Radians (rad). 2π per full turn.
Turn(f32)
Turns (turn). One full revolution.
Implementations§
Trait Implementations§
impl Copy 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