Enum Cop2

Source
#[repr(u32)]
pub enum Cop2 {
Show 32 variants COP2_0 = 0, COP2_1 = 1, COP2_2 = 2, COP2_3 = 3, COP2_4 = 4, COP2_5 = 5, COP2_6 = 6, COP2_7 = 7, COP2_8 = 8, COP2_9 = 9, COP2_10 = 10, COP2_11 = 11, COP2_12 = 12, COP2_13 = 13, COP2_14 = 14, COP2_15 = 15, COP2_16 = 16, COP2_17 = 17, COP2_18 = 18, COP2_19 = 19, COP2_20 = 20, COP2_21 = 21, COP2_22 = 22, COP2_23 = 23, COP2_24 = 24, COP2_25 = 25, COP2_26 = 26, COP2_27 = 27, COP2_28 = 28, COP2_29 = 29, COP2_30 = 30, COP2_31 = 31,
}

Variants§

§

COP2_0 = 0

§

COP2_1 = 1

§

COP2_2 = 2

§

COP2_3 = 3

§

COP2_4 = 4

§

COP2_5 = 5

§

COP2_6 = 6

§

COP2_7 = 7

§

COP2_8 = 8

§

COP2_9 = 9

§

COP2_10 = 10

§

COP2_11 = 11

§

COP2_12 = 12

§

COP2_13 = 13

§

COP2_14 = 14

§

COP2_15 = 15

§

COP2_16 = 16

§

COP2_17 = 17

§

COP2_18 = 18

§

COP2_19 = 19

§

COP2_20 = 20

§

COP2_21 = 21

§

COP2_22 = 22

§

COP2_23 = 23

§

COP2_24 = 24

§

COP2_25 = 25

§

COP2_26 = 26

§

COP2_27 = 27

§

COP2_28 = 28

§

COP2_29 = 29

§

COP2_30 = 30

§

COP2_31 = 31

Implementations§

Source§

impl Cop2

Source

pub fn name(self) -> &'static str

Source

pub fn descriptor(&self) -> &RegisterDescriptor

Trait Implementations§

Source§

impl Clone for Cop2

Source§

fn clone(&self) -> Cop2

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 Cop2

Source§

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

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

impl From<Cop2> for u32

Source§

fn from(enum_value: Cop2) -> Self

Converts to this type from the input type.
Source§

impl Hash for Cop2

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Cop2

Source§

fn eq(&self, other: &Cop2) -> 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<u32> for Cop2

Source§

type Error = TryFromPrimitiveError<Cop2>

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

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

Performs the conversion.
Source§

impl TryFromPrimitive for Cop2

Source§

const NAME: &'static str = "Cop2"

Source§

type Primitive = u32

Source§

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

Source§

impl Copy for Cop2

Source§

impl Eq for Cop2

Source§

impl StructuralPartialEq for Cop2

Auto Trait Implementations§

§

impl Freeze for Cop2

§

impl RefUnwindSafe for Cop2

§

impl Send for Cop2

§

impl Sync for Cop2

§

impl Unpin for Cop2

§

impl UnwindSafe for Cop2

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.