pub enum Bound<T> {
Open(T),
Closed(T),
Unbounded,
}Expand description
A lower or upper bound for an interval endpoint.
Open excludes the endpoint, Closed includes it, and Unbounded
leaves the side unconstrained.
Variants§
Open(T)
An excluded endpoint.
Closed(T)
An included endpoint.
Unbounded
No endpoint on this side of the interval.
Trait Implementations§
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> UnsafeUnpin for Bound<T>where
T: UnsafeUnpin,
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