Enum mentat_core::util::Either [] [src]

pub enum Either<L, R> {
    Left(L),
    Right(R),
}

Variants

Methods

impl<L, R> Either<L, R>
[src]

[src]

[src]

Trait Implementations

impl<L: Clone, R: Clone> Clone for Either<L, R>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<L: Debug, R: Debug> Debug for Either<L, R>
[src]

[src]

Formats the value using the given formatter. Read more

impl<L: Eq, R: Eq> Eq for Either<L, R>
[src]

impl<L: Hash, R: Hash> Hash for Either<L, R>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

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

impl<L: Ord, R: Ord> Ord for Either<L, R>
[src]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl<L: PartialOrd, R: PartialOrd> PartialOrd for Either<L, R>
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

impl<L: PartialEq, R: PartialEq> PartialEq for Either<L, R>
[src]

[src]

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

[src]

This method tests for !=.