Flip

Enum Flip 

Source
pub enum Flip {
    Forward = 0,
    Left = 1,
    Back = 2,
    Right = 3,
    ForwardLeft = 4,
    BackLeft = 5,
    BackRight = 6,
    ForwardRight = 7,
}
Expand description

Flip commands taken from Go version of code

Variants§

§

Forward = 0

flips forward.

§

Left = 1

flips left.

§

Back = 2

flips backwards.

§

Right = 3

flips to the right.

§

ForwardLeft = 4

flips forwards and to the left.

§

BackLeft = 5

flips backwards and to the left.

§

BackRight = 6

flips backwards and to the right.

§

ForwardRight = 7

flips forwards and to the right.

Auto Trait Implementations§

§

impl Freeze for Flip

§

impl RefUnwindSafe for Flip

§

impl Send for Flip

§

impl Sync for Flip

§

impl Unpin for Flip

§

impl UnwindSafe for Flip

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.