pub enum E {
    I(i32),
    D(f64),
    S(String),
    T(Tuple),
    Any,
    None,
}
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

Returns true if one or more elements are the wildcard E::Any, recursively.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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.

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

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

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

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.