pub struct Portion<T: Item> { /* private fields */ }
Expand description
Blank type used for interval creation.
Implementations§
Source§impl<T: Item> Portion<T>
impl<T: Item> Portion<T>
Sourcepub fn openclosed(lower: T, upper: T) -> Interval<T>
pub fn openclosed(lower: T, upper: T) -> Interval<T>
Creates an open-closed interval.
Sourcepub fn closedopen(lower: T, upper: T) -> Interval<T>
pub fn closedopen(lower: T, upper: T) -> Interval<T>
Creates a closed-open interval.
Auto Trait Implementations§
impl<T> Freeze for Portion<T>
impl<T> RefUnwindSafe for Portion<T>where
T: RefUnwindSafe,
impl<T> Send for Portion<T>where
T: Send,
impl<T> Sync for Portion<T>where
T: Sync,
impl<T> Unpin for Portion<T>where
T: Unpin,
impl<T> UnwindSafe for Portion<T>where
T: UnwindSafe,
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