Enum rustupolis_server::E
source · [−]Expand description
E represents a tuple element.
Variants
I(i32)
Integer data type.
Implemented as 32-bit integer (i32).
D(f64)
Floating point data type.
Implemented as double precision (f64).
S(String)
String data type.
Implemented as String.
T(Tuple)
Tuple data type.
Implemented as vector of tuple types (Vec
Any
Any data type.
In context of this tuple, Any stands for the wild card that is used for pattern matching when querying the tuple space for certain tuples, and marks the beginning of a matching range when searching for matching tuples.
None
None data type.
In context of this tuple, None represents “no match” when searching, and marks the end of a matching range when searching for matching tuples. All defined values will fall between Any..None.
Implementations
Trait Implementations
sourceimpl Ord for E
impl Ord for E
sourcefn cmp(&self, other: &E) -> Ordering
fn cmp(&self, other: &E) -> Ordering
Tuple elements have a well-defined ordering. Ordering among values of the same variant is consistent with its contained type. Ordering among variants of different types is mathematically and logically arbitrary but strongly consistent for the purpose of storage and retrieval in data structures.
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
sourceimpl PartialOrd<E> for E
impl PartialOrd<E> for E
sourcefn partial_cmp(&self, other: &E) -> Option<Ordering>
fn partial_cmp(&self, other: &E) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq for E
impl StructuralPartialEq for E
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more