[−][src]Struct segment_map::Segment
Implementations
impl<K> Segment<K> where
K: PartialOrd,
[src]
K: PartialOrd,
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]
K: Clone + PartialOrd,
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]
K: PartialOrd + Default,
impl<K> Segment<K> where
K: PartialOrd + Next,
[src]
K: PartialOrd + Next,
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]
K: Bounded + PartialOrd + Next,
impl<K> Segment<K> where
K: Bounded + PartialOrd,
[src]
K: Bounded + PartialOrd,
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<K: Ord> Ord for Segment<K>
[src]
fn cmp(&self, other: &Segment<K>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<K: PartialEq> PartialEq<Segment<K>> for Segment<K>
[src]
impl<K: PartialOrd> PartialOrd<Segment<K>> for Segment<K>
[src]
fn partial_cmp(&self, other: &Segment<K>) -> Option<Ordering>
[src]
fn lt(&self, other: &Segment<K>) -> bool
[src]
fn le(&self, other: &Segment<K>) -> bool
[src]
fn gt(&self, other: &Segment<K>) -> bool
[src]
fn ge(&self, other: &Segment<K>) -> bool
[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,
K: RefUnwindSafe,
impl<K> Send for Segment<K> where
K: Send,
K: Send,
impl<K> Sync for Segment<K> where
K: Sync,
K: Sync,
impl<K> Unpin for Segment<K> where
K: Unpin,
K: Unpin,
impl<K> UnwindSafe for Segment<K> where
K: UnwindSafe,
K: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,