pub enum Bound<T> {
Included(T),
Excluded(T),
}Expand description
Represents a boundary of an interval. Can be either inclusive (closed) or exclusive (open).
Variants§
Included(T)
Represents an inclusive boundary, meaning the value itself is included in the interval.
Excluded(T)
Represents an exclusive boundary, meaning the value itself is excluded from the interval.
Implementations§
Trait Implementations§
Source§impl<T: PartialOrd> PartialOrd for Bound<T>
impl<T: PartialOrd> PartialOrd for Bound<T>
impl<T: Copy> Copy for Bound<T>
impl<T> StructuralPartialEq for Bound<T>
Auto Trait Implementations§
impl<T> Freeze for Bound<T>where
T: Freeze,
impl<T> RefUnwindSafe for Bound<T>where
T: RefUnwindSafe,
impl<T> Send for Bound<T>where
T: Send,
impl<T> Sync for Bound<T>where
T: Sync,
impl<T> Unpin for Bound<T>where
T: Unpin,
impl<T> UnwindSafe for Bound<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