MetaKeyId

Enum MetaKeyId 

Source
#[repr(u8)]
pub enum MetaKeyId {
Show 42 variants Add = 0, Subtract = 1, Multiply = 2, Divide = 3, Remainder = 4, Power = 5, AddRhs = 6, SubtractRhs = 7, MultiplyRhs = 8, DivideRhs = 9, RemainderRhs = 10, PowerRhs = 11, AddAssign = 12, SubtractAssign = 13, MultiplyAssign = 14, DivideAssign = 15, RemainderAssign = 16, PowerAssign = 17, Less = 18, LessOrEqual = 19, Greater = 20, GreaterOrEqual = 21, Equal = 22, NotEqual = 23, Index = 24, IndexMut = 25, Debug = 26, Display = 27, Iterator = 28, Next = 29, NextBack = 30, Negate = 31, Size = 32, Type = 33, Base = 34, Call = 35, Test = 36, PreTest = 37, PostTest = 38, Main = 39, Named = 40, Invalid = 41,
}
Expand description

A meta key

Variants§

§

Add = 0

@+

§

Subtract = 1

@-

§

Multiply = 2

@*

§

Divide = 3

@/

§

Remainder = 4

@%

§

Power = 5

@^

§

AddRhs = 6

@r+

§

SubtractRhs = 7

@r-

§

MultiplyRhs = 8

@r*

§

DivideRhs = 9

@r/

§

RemainderRhs = 10

@r%

§

PowerRhs = 11

@r^

§

AddAssign = 12

@+=

§

SubtractAssign = 13

@-=

§

MultiplyAssign = 14

@*=

§

DivideAssign = 15

@/=

§

RemainderAssign = 16

@%=

§

PowerAssign = 17

@^=

§

Less = 18

@<

§

LessOrEqual = 19

@<=

§

Greater = 20

@>

§

GreaterOrEqual = 21

@>=

§

Equal = 22

@==

§

NotEqual = 23

@!=

§

Index = 24

@index

§

IndexMut = 25

@index_mut

§

Debug = 26

@debug

§

Display = 27

@display

§

Iterator = 28

@iterator

§

Next = 29

@next

§

NextBack = 30

@next_back

§

Negate = 31

@negate

§

Size = 32

@size

§

Type = 33

@type

§

Base = 34

@base

§

Call = 35

@call

§

Test = 36

@test test_name

§

PreTest = 37

@pre_test

§

PostTest = 38

@post_test

§

Main = 39

@main

§

Named = 40

@meta name

§

Invalid = 41

Unused

This entry must be last, see TryFrom<u7> for MetaKeyId

Implementations§

Source§

impl MetaKeyId

Source

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

Returns the key id as a static str

Trait Implementations§

Source§

impl Clone for MetaKeyId

Source§

fn clone(&self) -> MetaKeyId

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 MetaKeyId

Source§

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

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

impl Display for MetaKeyId

Source§

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

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

impl PartialEq for MetaKeyId

Source§

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

Source§

type Error = u8

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

fn try_from(byte: u8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for MetaKeyId

Source§

impl Eq for MetaKeyId

Source§

impl StructuralPartialEq for MetaKeyId

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.