pub struct BoundedValue<T> {
pub min: T,
pub max: T,
}Expand description
A set of bounds on a value.
Used in the API to return bounds settings.
Fields§
§min: TMinimum allowed value for this parameter.
max: TMaximum allowed value for this parameter.
Implementations§
Source§impl<T> BoundedValue<T>
impl<T> BoundedValue<T>
Trait Implementations§
impl<T> Copy for BoundedValue<T>where
T: Copy,
Implement Copy if inner type implements it.
Source§impl<T> Default for BoundedValue<T>where
T: Default,
Implement Default if inner type implements it.
impl<T> Default for BoundedValue<T>where
T: Default,
Implement Default if inner type implements it.
impl<T> Eq for BoundedValue<T>where
T: Eq,
Auto Trait Implementations§
impl<T> Freeze for BoundedValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for BoundedValue<T>where
T: RefUnwindSafe,
impl<T> Send for BoundedValue<T>where
T: Send,
impl<T> Sync for BoundedValue<T>where
T: Sync,
impl<T> Unpin for BoundedValue<T>where
T: Unpin,
impl<T> UnsafeUnpin for BoundedValue<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for BoundedValue<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