LeftBounded

Type Alias LeftBounded 

Source
pub type LeftBounded<T, B> = HalfBounded<T, B, Left>;

Aliased Type§

pub struct LeftBounded<T, B>(/* private fields */);

Implementations§

Source§

impl<T: PartialOrd, B: BoundaryOf<Left>> LeftBounded<T, B>

Source

pub fn includes(&self, other: &Self) -> bool

Source

pub fn contains(&self, t: &T) -> bool

Source

pub fn intersection<'a>(&'a self, other: &'a Self) -> &'a Self

Source

pub fn union<'a>(&'a self, other: &'a Self) -> &'a Self

Source

pub fn hull(self, t: T) -> Self

Source

pub fn dilate(self, delta: T) -> Self
where T: Sub<Output = T>,

Source

pub fn inf(&self) -> &T

Source

pub fn closure(self) -> LeftBounded<T, Inclusive>

Source

pub fn interior(self) -> LeftBounded<T, Exclusive>

Source

pub fn step_by(&self, step: T) -> impl Iterator<Item = T>
where for<'a> T: Clone + AddAssign<&'a T>,

Trait Implementations§

Source§

impl<T: PartialOrd> RangeBounds<T> for LeftBounded<T, Exclusive>

Source§

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

Start index bound. Read more
Source§

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

End index bound. Read more
1.35.0 · Source§

fn contains<U>(&self, item: &U) -> bool
where T: PartialOrd<U>, U: PartialOrd<T> + ?Sized,

Returns true if item is contained in the range. Read more
Source§

fn is_empty(&self) -> bool
where T: PartialOrd,

🔬This is a nightly-only experimental API. (range_bounds_is_empty)
Returns true if the range contains no items. One-sided ranges (RangeFrom, etc) always return false. Read more
Source§

impl<T: PartialOrd> RangeBounds<T> for LeftBounded<T, Inclusive>

Source§

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

Start index bound. Read more
Source§

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

End index bound. Read more
1.35.0 · Source§

fn contains<U>(&self, item: &U) -> bool
where T: PartialOrd<U>, U: PartialOrd<T> + ?Sized,

Returns true if item is contained in the range. Read more
Source§

fn is_empty(&self) -> bool
where T: PartialOrd,

🔬This is a nightly-only experimental API. (range_bounds_is_empty)
Returns true if the range contains no items. One-sided ranges (RangeFrom, etc) always return false. Read more