pub enum Rotation {
Clockwise,
CounterClockwise,
}Expand description
2-way rotations: clockwise or counterclockwise. These don’t indicate any specific angle by themselves, only in relation to something.
Variants
Clockwise
CounterClockwise
Implementations
sourceimpl Rotation
impl Rotation
sourcepub fn steps_clockwise(&self) -> i32
pub fn steps_clockwise(&self) -> i32
Get the number of steps clockwise this does.
Clockwiseis 1CounterClockwiseis -1
Trait Implementations
impl Copy for Rotation
impl Eq for Rotation
impl StructuralEq for Rotation
impl StructuralPartialEq for Rotation
Auto Trait Implementations
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnwindSafe for Rotation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more