Enum std::collections::Bound [] [src]

pub enum Bound<T> {
    Included(T),
    Excluded(T),
    Unbounded,
}
Unstable (collections_bound)

An endpoint of a range of keys.

Variants

Included
Unstable (collections_bound)

An inclusive bound.

Excluded
Unstable (collections_bound)

An exclusive bound.

Unbounded
Unstable (collections_bound)

An infinite endpoint. Indicates that there is no bound in this direction.

Trait Implementations

Derived Implementations

impl<T> Eq for Bound<T> where T: Eq

fn assert_receiver_is_total_eq(&self)

impl<T> PartialEq<Bound<T>> for Bound<T> where T: PartialEq<T>

fn eq(&self, __arg_0: &Bound<T>) -> bool

fn ne(&self, __arg_0: &Bound<T>) -> bool

impl<T> Hash for Bound<T> where T: Hash

fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher

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

impl<T> Debug for Bound<T> where T: Debug

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl<T> Copy for Bound<T> where T: Copy

impl<T> Clone for Bound<T> where T: Clone

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

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