CardNameCardCoding

Enum CardNameCardCoding 

Source
#[repr(u8)]
pub enum CardNameCardCoding {
Show 62 variants None = 0, CalibrationWhite = 17, Card = 18, Motion = 19, Piano = 24, CodingStart = 33, CodingEnd = 34, FunctionStart = 35, FunctionEnd = 36, FunctionCall = 37, PlayMelody = 38, Speed = 39, Wait1Sec = 40, LightBodyWhite = 49, LightBodyRed = 50, LightBodyYellow = 51, LightBodyGreen = 52, LightBodyCyan = 53, LightBodyBlue = 54, LightBodyMagenta = 55, LightBodyBlack = 56, Takeoff = 65, Landing = 66, Distance300 = 67, Distance500 = 68, Distance1000 = 69, Degree30 = 70, Degree45 = 71, Degree90 = 72, MoveForward = 81, MoveBackward = 82, MoveLeft = 83, MoveRight = 84, MoveUp = 85, MoveDown = 86, TurnLeft = 87, TurnRight = 88, IfFindFrontObstacle = 97, IfFindGroundRed = 98, IfFindGroundYellow = 99, IfFindGroundGreen = 100, IfFindGroundCyan = 101, IfFindGroundBlue = 102, IfElse = 103, IfEnd = 104, LoopStartInfinite = 113, LoopStart2 = 114, LoopStart3 = 115, LoopStart4 = 116, LoopStart5 = 117, LoopStart10 = 118, LoopBreak = 119, LoopEnd = 120, C5 = 129, D5 = 130, E5 = 131, F5 = 132, G5 = 133, A5 = 134, B5 = 135, C6 = 136, EndOfType = 137,
}

Variants§

§

None = 0

§

CalibrationWhite = 17

§

Card = 18

§

Motion = 19

§

Piano = 24

§

CodingStart = 33

§

CodingEnd = 34

§

FunctionStart = 35

§

FunctionEnd = 36

§

FunctionCall = 37

§

PlayMelody = 38

§

Speed = 39

§

Wait1Sec = 40

§

LightBodyWhite = 49

§

LightBodyRed = 50

§

LightBodyYellow = 51

§

LightBodyGreen = 52

§

LightBodyCyan = 53

§

LightBodyBlue = 54

§

LightBodyMagenta = 55

§

LightBodyBlack = 56

§

Takeoff = 65

§

Landing = 66

§

Distance300 = 67

§

Distance500 = 68

§

Distance1000 = 69

§

Degree30 = 70

§

Degree45 = 71

§

Degree90 = 72

§

MoveForward = 81

§

MoveBackward = 82

§

MoveLeft = 83

§

MoveRight = 84

§

MoveUp = 85

§

MoveDown = 86

§

TurnLeft = 87

§

TurnRight = 88

§

IfFindFrontObstacle = 97

§

IfFindGroundRed = 98

§

IfFindGroundYellow = 99

§

IfFindGroundGreen = 100

§

IfFindGroundCyan = 101

§

IfFindGroundBlue = 102

§

IfElse = 103

§

IfEnd = 104

§

LoopStartInfinite = 113

§

LoopStart2 = 114

§

LoopStart3 = 115

§

LoopStart4 = 116

§

LoopStart5 = 117

§

LoopStart10 = 118

§

LoopBreak = 119

§

LoopEnd = 120

§

C5 = 129

§

D5 = 130

§

E5 = 131

§

F5 = 132

§

G5 = 133

§

A5 = 134

§

B5 = 135

§

C6 = 136

§

EndOfType = 137

Implementations§

Trait Implementations§

Source§

impl Clone for CardNameCardCoding

Source§

fn clone(&self) -> CardNameCardCoding

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CardNameCardCoding

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<CardNameCardCoding> for u8

Source§

fn from(enum_value: CardNameCardCoding) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for CardNameCardCoding

Source§

fn eq(&self, other: &CardNameCardCoding) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u8> for CardNameCardCoding

Source§

type Error = TryFromPrimitiveError<CardNameCardCoding>

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

fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for CardNameCardCoding

Source§

const NAME: &'static str = "CardNameCardCoding"

Source§

type Primitive = u8

Source§

fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>

Source§

impl Copy for CardNameCardCoding

Source§

impl Eq for CardNameCardCoding

Source§

impl StructuralPartialEq for CardNameCardCoding

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.