#[repr(C)]pub struct MaxMin<T> {
pub max: T,
pub min: T,
}
Expand description
Represents a min-max range of values.
Fields§
§max: T
§min: T
Implementations§
Trait Implementations§
impl<T: Copy> Copy for MaxMin<T>
impl<T: Eq> Eq for MaxMin<T>
impl<T> StructuralPartialEq for MaxMin<T>
Auto Trait Implementations§
impl<T> Freeze for MaxMin<T>where
T: Freeze,
impl<T> RefUnwindSafe for MaxMin<T>where
T: RefUnwindSafe,
impl<T> Send for MaxMin<T>where
T: Send,
impl<T> Sync for MaxMin<T>where
T: Sync,
impl<T> Unpin for MaxMin<T>where
T: Unpin,
impl<T> UnwindSafe for MaxMin<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