pub struct Bound<T, B> {
pub limit: T,
pub bound_type: B,
}Fields§
§limit: T§bound_type: BImplementations§
Trait Implementations§
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: Ord, B: Ord> Ord for Bound<T, B>
impl<T: Ord, B: Ord> Ord for Bound<T, B>
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<T: PartialEq, B: PartialEq> PartialEq for Bound<T, B>
impl<T: PartialEq, B: PartialEq> PartialEq for Bound<T, B>
source§impl<T: PartialOrd, B: PartialOrd> PartialOrd for Bound<T, B>
impl<T: PartialOrd, B: PartialOrd> PartialOrd for Bound<T, B>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<T: Copy, B: Copy> Copy for Bound<T, B>
impl<T: Eq, B: Eq> Eq for Bound<T, B>
impl<T, B> StructuralEq for Bound<T, B>
impl<T, B> StructuralPartialEq for Bound<T, B>
Auto Trait Implementations§
impl<T, B> RefUnwindSafe for Bound<T, B>where
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B> Send for Bound<T, B>
impl<T, B> Sync for Bound<T, B>
impl<T, B> Unpin for Bound<T, B>
impl<T, B> UnwindSafe for Bound<T, B>where
B: UnwindSafe,
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