Enum cogs_gamedev::grids::directions::Rotation [−][src]
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
Implementations
Get the number of steps clockwise this does.
Clockwiseis 1CounterClockwiseis -1
Trait Implementations
Takes an usize, and returns an element matching into_usize function.
Returns an unique identifier for a value within range of 0..Array::LENGTH.
Auto Trait Implementations
impl RefUnwindSafe for Rotationimpl UnwindSafe for RotationBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V