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.
Clockwise
is 1CounterClockwise
is -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 Rotation
impl UnwindSafe for Rotation
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V