pub type TupleHighEndpoint = HighEndpoint<Tuple>;
Expand description

High endpoint of a TupleRange.

Aliased Type§

enum TupleHighEndpoint {
    RangeInclusive(Tuple),
    RangeExclusive(Tuple),
    End,
}

Variants§

§

RangeInclusive(Tuple)

Includes endpoint value.

§

RangeExclusive(Tuple)

Excludes endpoint value.

§

End

End of a range.

Implementations§

source§

impl<T> HighEndpoint<T>where T: Debug + PartialEq,

source

pub(crate) fn map<F, U>(self, f: F) -> HighEndpoint<U>where F: FnOnce(T) -> U, U: Debug + PartialEq,

Maps an HighEndpoint<T> to HighEndpoint<U> by applying a function to a contained value.

Trait Implementations§

source§

impl<T> Clone for HighEndpoint<T>where T: Debug + PartialEq + Clone,

source§

fn clone(&self) -> HighEndpoint<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for HighEndpoint<T>where T: Debug + PartialEq + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T> PartialEq<HighEndpoint<T>> for HighEndpoint<T>where T: Debug + PartialEq + PartialEq,

source§

fn eq(&self, other: &HighEndpoint<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T> StructuralPartialEq for HighEndpoint<T>where T: Debug + PartialEq,