[][src]Enum discrete::Select

pub enum Select<T, U> {
    Fst(T),
    Snd(U),
}

Selects between spaces.

Variants

Fst(T)

The first space.

Snd(U)

The second space.

Trait Implementations

impl<T, U, V, W, X, Y> ToIndex<(V, W), Select<X, Y>> for Either<T, U> where
    T: Construct + Count<V> + ToIndex<V, X>,
    U: Construct + ToIndex<W, Y>, 
[src]

impl<T, U, V, W, X, Y> ToPos<(V, W), Select<X, Y>> for Either<T, U> where
    T: Construct + Count<V> + ToPos<V, X> + Zero<V, X>,
    U: Construct + ToPos<W, Y> + Zero<W, Y>, 
[src]

impl<T, U, V, W, X, Y> Zero<(V, W), Select<X, Y>> for Either<T, U> where
    T: Construct + Zero<V, X>, 
[src]

impl<T: Ord, U: Ord> Ord for Select<T, U>[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl<T: PartialEq, U: PartialEq> PartialEq<Select<T, U>> for Select<T, U>[src]

impl<T: PartialOrd, U: PartialOrd> PartialOrd<Select<T, U>> for Select<T, U>[src]

impl<T: Eq, U: Eq> Eq for Select<T, U>[src]

impl<T: Clone, U: Clone> Clone for Select<T, U>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: Hash, U: Hash> Hash for Select<T, U>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: Debug, U: Debug> Debug for Select<T, U>[src]

Auto Trait Implementations

impl<T, U> Send for Select<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for Select<T, U> where
    T: Sync,
    U: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]