pub struct HalfBounded<T, B, LR>(/* private fields */);Implementations§
Source§impl<T, B, LR> HalfBounded<T, B, LR>
impl<T, B, LR> HalfBounded<T, B, LR>
pub fn cast<U: From<T>>(self) -> HalfBounded<U, B, LR>
Source§impl<T: NumCast, B, LR> HalfBounded<T, B, LR>
impl<T: NumCast, B, LR> HalfBounded<T, B, LR>
pub fn try_cast<U: NumCast>(self) -> Option<HalfBounded<U, B, LR>>
Source§impl<T: PartialOrd, B: BoundaryOf<Left>> HalfBounded<T, B, Left>
impl<T: PartialOrd, B: BoundaryOf<Left>> HalfBounded<T, B, Left>
pub fn includes(&self, other: &Self) -> bool
pub fn contains(&self, t: &T) -> bool
pub fn intersection<'a>(&'a self, other: &'a Self) -> &'a Self
pub fn union<'a>(&'a self, other: &'a Self) -> &'a Self
pub fn hull(self, t: T) -> Self
pub fn dilate(self, delta: T) -> Selfwhere
T: Sub<Output = T>,
pub fn inf(&self) -> &T
pub fn closure(self) -> LeftBounded<T, Inclusive>
pub fn interior(self) -> LeftBounded<T, Exclusive>
pub fn step_by(&self, step: T) -> impl Iterator<Item = T>
Source§impl<T: PartialOrd, B: BoundaryOf<Right>> HalfBounded<T, B, Right>
impl<T: PartialOrd, B: BoundaryOf<Right>> HalfBounded<T, B, Right>
pub fn includes(&self, other: &Self) -> bool
pub fn contains(&self, t: &T) -> bool
pub fn intersection<'a>(&'a self, other: &'a Self) -> &'a Self
pub fn union<'a>(&'a self, other: &'a Self) -> &'a Self
pub fn hull(self, t: T) -> Self
pub fn dilate(self, delta: T) -> Selfwhere
T: Add<Output = T>,
pub fn sup(&self) -> &T
pub fn closure(self) -> RightBounded<T, Inclusive>
pub fn interior(self) -> RightBounded<T, Exclusive>
pub fn step_rev_by(&self, step: T) -> impl Iterator<Item = T>
Trait Implementations§
Source§impl<T: Clone, B: Clone, LR: Clone> Clone for HalfBounded<T, B, LR>
impl<T: Clone, B: Clone, LR: Clone> Clone for HalfBounded<T, B, LR>
Source§fn clone(&self) -> HalfBounded<T, B, LR>
fn clone(&self) -> HalfBounded<T, B, LR>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T, B, LR> Deref for HalfBounded<T, B, LR>
impl<T, B, LR> Deref for HalfBounded<T, B, LR>
Source§impl<T, B, LR> DerefMut for HalfBounded<T, B, LR>
impl<T, B, LR> DerefMut for HalfBounded<T, B, LR>
Source§impl<T, B, LR> From<Bound<T, B>> for HalfBounded<T, B, LR>
impl<T, B, LR> From<Bound<T, B>> for HalfBounded<T, B, LR>
Source§impl<T: PartialOrd, B: BoundaryOf<LR>, LR> PartialOrd for HalfBounded<T, B, LR>
impl<T: PartialOrd, B: BoundaryOf<LR>, LR> PartialOrd for HalfBounded<T, B, LR>
impl<T: Copy, B: Copy, LR: Copy> Copy for HalfBounded<T, B, LR>
impl<T: Eq, B: Eq, LR> Eq for HalfBounded<T, B, LR>
Auto Trait Implementations§
impl<T, B, LR> Freeze for HalfBounded<T, B, LR>
impl<T, B, LR> RefUnwindSafe for HalfBounded<T, B, LR>
impl<T, B, LR> Send for HalfBounded<T, B, LR>
impl<T, B, LR> Sync for HalfBounded<T, B, LR>
impl<T, B, LR> Unpin for HalfBounded<T, B, LR>
impl<T, B, LR> UnwindSafe for HalfBounded<T, B, LR>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more