[][src]Struct segment_map::Segment

pub struct Segment<K> { /* fields omitted */ }

Implementations

impl<K> Segment<K> where
    K: PartialOrd
[src]

pub fn new(lower: K, upper: K) -> Segment<K>[src]

pub fn closed_open(lower: K, upper: K) -> Segment<K>[src]

pub fn contains(&self, value: &K) -> bool[src]

pub fn encloses(&self, other: &Segment<K>) -> bool[src]

pub fn is_connected(&self, other: &Segment<K>) -> bool[src]

pub fn is_empty(&self) -> bool[src]

pub fn lower(&self) -> &K[src]

pub fn upper(&self) -> &K[src]

impl<K> Segment<K> where
    K: Clone + PartialOrd
[src]

pub fn intersection(&self, other: &Segment<K>) -> Option<Segment<K>>[src]

pub fn span(&self, other: &Segment<K>) -> Segment<K>[src]

impl<K> Segment<K> where
    K: PartialOrd + Default
[src]

pub fn empty() -> Segment<K>[src]

impl<K> Segment<K> where
    K: PartialOrd + Next
[src]

pub fn singleton(value: K) -> Segment<K>[src]

pub fn open(lower: K, upper: K) -> Segment<K>[src]

pub fn closed(lower: K, upper: K) -> Segment<K>[src]

pub fn open_closed(lower: K, upper: K) -> Segment<K>[src]

impl<K> Segment<K> where
    K: Bounded + PartialOrd + Next
[src]

pub fn at_most(value: K) -> Segment<K>[src]

pub fn greater_than(value: K) -> Segment<K>[src]

impl<K> Segment<K> where
    K: Bounded + PartialOrd
[src]

pub fn at_least(value: K) -> Segment<K>[src]

pub fn less_than(value: K) -> Segment<K>[src]

pub fn all() -> Segment<K>[src]

Trait Implementations

impl<K: Clone> Clone for Segment<K>[src]

impl<K: Copy> Copy for Segment<K>[src]

impl<K: Debug> Debug for Segment<K>[src]

impl<K: Eq> Eq for Segment<K>[src]

impl<K: Hash> Hash for Segment<K>[src]

impl<K: Ord> Ord for Segment<K>[src]

impl<K: PartialEq> PartialEq<Segment<K>> for Segment<K>[src]

impl<K: PartialOrd> PartialOrd<Segment<K>> for Segment<K>[src]

impl<K> StructuralEq for Segment<K>[src]

impl<K> StructuralPartialEq for Segment<K>[src]

Auto Trait Implementations

impl<K> RefUnwindSafe for Segment<K> where
    K: RefUnwindSafe

impl<K> Send for Segment<K> where
    K: Send

impl<K> Sync for Segment<K> where
    K: Sync

impl<K> Unpin for Segment<K> where
    K: Unpin

impl<K> UnwindSafe for Segment<K> where
    K: UnwindSafe

Blanket Implementations

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

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

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

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.