pub struct RangeBound<S: BoundSided, T> {
pub value: T,
pub type_: BoundType,
/* private fields */
}
Expand description
Represents a one-sided bound.
The side is determined by the S
phantom parameter.
Fields§
§value: T
The value of the bound.
type_: BoundType
The type of the bound.
Implementations§
Source§impl<S, T> RangeBound<S, T>where
S: BoundSided,
T: PartialOrd,
impl<S, T> RangeBound<S, T>where
S: BoundSided,
T: PartialOrd,
Trait Implementations§
Source§impl<S, T> Clone for RangeBound<S, T>where
S: BoundSided,
T: Clone,
impl<S, T> Clone for RangeBound<S, T>where
S: BoundSided,
T: Clone,
Source§fn clone(&self) -> RangeBound<S, T>
fn clone(&self) -> RangeBound<S, T>
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<S, T> Debug for RangeBound<S, T>where
S: BoundSided,
T: Debug,
impl<S, T> Debug for RangeBound<S, T>where
S: BoundSided,
T: Debug,
Source§impl<S, T> Display for RangeBound<S, T>where
S: BoundSided,
T: Display,
impl<S, T> Display for RangeBound<S, T>where
S: BoundSided,
T: Display,
Source§impl<S, T> Ord for RangeBound<S, T>where
S: BoundSided,
T: Ord,
impl<S, T> Ord for RangeBound<S, T>where
S: BoundSided,
T: Ord,
Source§fn cmp(&self, other: &RangeBound<S, T>) -> Ordering
fn cmp(&self, other: &RangeBound<S, T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<S, T> PartialEq for RangeBound<S, T>where
S: BoundSided,
T: PartialEq,
impl<S, T> PartialEq for RangeBound<S, T>where
S: BoundSided,
T: PartialEq,
Source§impl<S, T> PartialOrd for RangeBound<S, T>where
S: BoundSided,
T: PartialOrd,
impl<S, T> PartialOrd for RangeBound<S, T>where
S: BoundSided,
T: PartialOrd,
impl<S, T> Copy for RangeBound<S, T>where
S: BoundSided,
T: Copy,
impl<S, T> Eq for RangeBound<S, T>where
S: BoundSided,
T: Eq,
Auto Trait Implementations§
impl<S, T> Freeze for RangeBound<S, T>where
T: Freeze,
impl<S, T> RefUnwindSafe for RangeBound<S, T>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, T> Send for RangeBound<S, T>
impl<S, T> Sync for RangeBound<S, T>
impl<S, T> Unpin for RangeBound<S, T>
impl<S, T> UnwindSafe for RangeBound<S, T>where
T: UnwindSafe,
S: 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