pub type TupleLowEndpoint = LowEndpoint<Tuple>;
Expand description

Low endpoint of a TupleRange.

Aliased Type§

enum TupleLowEndpoint {
    Start,
    RangeInclusive(Tuple),
    RangeExclusive(Tuple),
}

Variants§

§

Start

Start of the range.

§

RangeInclusive(Tuple)

Includes endpoint value.

§

RangeExclusive(Tuple)

Excludes endpoint value.

Implementations§

source§

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

source

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

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

Trait Implementations§

source§

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

source§

fn clone(&self) -> LowEndpoint<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 LowEndpoint<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<LowEndpoint<T>> for LowEndpoint<T>where T: Debug + PartialEq + PartialEq,

source§

fn eq(&self, other: &LowEndpoint<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 LowEndpoint<T>where T: Debug + PartialEq,