RightBounded

Type Alias RightBounded 

Source
pub type RightBounded<T, B> = HalfBounded<T, B, Right>;

Aliased Type§

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

Implementations§

Source§

impl<T: PartialOrd, B: BoundaryOf<Right>> RightBounded<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: Add<Output = T>,

Source

pub fn sup(&self) -> &T

Source

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

Source

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

Source

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

Trait Implementations§

Source§

impl<T: PartialOrd> RangeBounds<T> for RightBounded<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 RightBounded<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