[−][src]Enum rustupolis::tuple::E
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 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 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
impl E
[src]
pub fn str<S: Into<String>>(s: S) -> E
[src]
pub fn is_defined(&self) -> bool
[src]
Returns true if one or more elements are the wildcard E::Any, recursively.
pub fn matches(&self, other: &E) -> bool
[src]
Returns true if the other tuple matches this one. Tuples match when elements in each respective position are equal, or one or both of them in a given position is the wildcard E::Any.
Trait Implementations
impl Clone for E
[src]
impl Debug for E
[src]
impl Display for E
[src]
impl Eq for E
[src]
impl Ord for E
[src]
fn cmp(&self, other: &E) -> Ordering
[src]
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.
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<E> for E
[src]
impl PartialOrd<E> for E
[src]
fn partial_cmp(&self, other: &E) -> Option<Ordering>
[src]
fn lt(&self, other: &E) -> bool
[src]
fn le(&self, other: &E) -> bool
[src]
fn gt(&self, other: &E) -> bool
[src]
fn ge(&self, other: &E) -> bool
[src]
impl StructuralPartialEq for E
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
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>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
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>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,