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
impl Rotation[src]
impl Rotation[src]pub fn steps_clockwise(&self) -> isize[src]
pub fn steps_clockwise(&self) -> isize[src]Get the number of steps clockwise this does.
Clockwiseis 1CounterClockwiseis -1
Trait Implementations
impl<V> Enum<V> for Rotation[src]
impl<V> Enum<V> for Rotation[src]fn from_usize(value: usize) -> Self[src]
fn from_usize(value: usize) -> Self[src]Takes an usize, and returns an element matching into_usize function.
fn into_usize(self) -> usize[src]
fn into_usize(self) -> usize[src]Returns an unique identifier for a value within range of 0..Array::LENGTH.
impl Copy for Rotation[src]
impl Eq for Rotation[src]
impl StructuralEq for Rotation[src]
impl StructuralPartialEq for Rotation[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,