ValueKind

Enum ValueKind 

Source
#[repr(u8)]
pub enum ValueKind {
Show 66 variants None = 0, Some = 1, Bool = 2, U8 = 3, I8 = 4, U16 = 5, I16 = 6, U32 = 7, I32 = 8, U64 = 9, I64 = 10, F32 = 11, F64 = 12, String = 13, Uuid = 14, ObjectId = 15, ServiceId = 16, Vec1 = 17, Bytes1 = 18, U8Map1 = 19, I8Map1 = 20, U16Map1 = 21, I16Map1 = 22, U32Map1 = 23, I32Map1 = 24, U64Map1 = 25, I64Map1 = 26, StringMap1 = 27, UuidMap1 = 28, U8Set1 = 29, I8Set1 = 30, U16Set1 = 31, I16Set1 = 32, U32Set1 = 33, I32Set1 = 34, U64Set1 = 35, I64Set1 = 36, StringSet1 = 37, UuidSet1 = 38, Struct1 = 39, Enum = 40, Sender = 41, Receiver = 42, Vec2 = 43, Bytes2 = 44, U8Map2 = 45, I8Map2 = 46, U16Map2 = 47, I16Map2 = 48, U32Map2 = 49, I32Map2 = 50, U64Map2 = 51, I64Map2 = 52, StringMap2 = 53, UuidMap2 = 54, U8Set2 = 55, I8Set2 = 56, U16Set2 = 57, I16Set2 = 58, U32Set2 = 59, I32Set2 = 60, U64Set2 = 61, I64Set2 = 62, StringSet2 = 63, UuidSet2 = 64, Struct2 = 65,
}

Variants§

§

None = 0

§

Some = 1

§

Bool = 2

§

U8 = 3

§

I8 = 4

§

U16 = 5

§

I16 = 6

§

U32 = 7

§

I32 = 8

§

U64 = 9

§

I64 = 10

§

F32 = 11

§

F64 = 12

§

String = 13

§

Uuid = 14

§

ObjectId = 15

§

ServiceId = 16

§

Vec1 = 17

§

Bytes1 = 18

§

U8Map1 = 19

§

I8Map1 = 20

§

U16Map1 = 21

§

I16Map1 = 22

§

U32Map1 = 23

§

I32Map1 = 24

§

U64Map1 = 25

§

I64Map1 = 26

§

StringMap1 = 27

§

UuidMap1 = 28

§

U8Set1 = 29

§

I8Set1 = 30

§

U16Set1 = 31

§

I16Set1 = 32

§

U32Set1 = 33

§

I32Set1 = 34

§

U64Set1 = 35

§

I64Set1 = 36

§

StringSet1 = 37

§

UuidSet1 = 38

§

Struct1 = 39

§

Enum = 40

§

Sender = 41

§

Receiver = 42

§

Vec2 = 43

§

Bytes2 = 44

§

U8Map2 = 45

§

I8Map2 = 46

§

U16Map2 = 47

§

I16Map2 = 48

§

U32Map2 = 49

§

I32Map2 = 50

§

U64Map2 = 51

§

I64Map2 = 52

§

StringMap2 = 53

§

UuidMap2 = 54

§

U8Set2 = 55

§

I8Set2 = 56

§

U16Set2 = 57

§

I16Set2 = 58

§

U32Set2 = 59

§

I32Set2 = 60

§

U64Set2 = 61

§

I64Set2 = 62

§

StringSet2 = 63

§

UuidSet2 = 64

§

Struct2 = 65

Trait Implementations§

Source§

impl Clone for ValueKind

Source§

fn clone(&self) -> ValueKind

Returns a duplicate of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ValueKind

Source§

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

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

impl From<ValueKind> for u8

Source§

fn from(enum_value: ValueKind) -> Self

Converts to this type from the input type.
Source§

impl Hash for ValueKind

Source§

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

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

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 Ord for ValueKind

Source§

fn cmp(&self, other: &ValueKind) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for ValueKind

Source§

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

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

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 PartialOrd for ValueKind

Source§

fn partial_cmp(&self, other: &ValueKind) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<u8> for ValueKind

Source§

type Error = TryFromPrimitiveError<ValueKind>

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 ValueKind

Source§

impl Copy for ValueKind

Source§

impl Eq for ValueKind

Source§

impl StructuralPartialEq for ValueKind

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

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
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

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

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

Uses borrowed data to replace owned data, usually by cloning. Read more
§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.