Trait ToMin Copy item path Source pub trait ToMin<T>:
Sized
+ PartialEq
+ Copy {
// Required method
fn to_min () -> T;
}Available on crate feature to_min only.
Expand description Trait to implement lower bounds on types.
assert_eq! (<i8 as ToMin<i8>>::to_min(), i8::MIN);
assert_eq! (<i8 as ToMin<i16>>::to_min(), i8::MIN as i16);
assert_eq! (<i8 as ToMin<i32>>::to_min(), i8::MIN as i32);
assert_eq! (<i8 as ToMin<i64>>::to_min(), i8::MIN as i64);
assert_eq! (<i8 as ToMin<isize>>::to_min(), i8::MIN as isize);
assert_eq! (<i8 as ToMin<i128>>::to_min(), i8::MIN as i128);Returns lower bounds of types.
This trait is not dyn compatible .
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i8) for type i8.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i8) for type i16.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i16) for type i16.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i8) for type i32.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i16) for type i32.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i32) for type i32.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i8) for type i64.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i16) for type i64.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i32) for type i64.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i64) for type i64.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (isize) for type i64.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i8) for type i128.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i16) for type i128.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i32) for type i128.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i64) for type i128.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i128) for type i128.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (isize) for type i128.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i8) for type isize.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i16) for type isize.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i32) for type isize.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (i64) for type isize.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (isize) for type isize.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (u8) for type u8.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (u16) for type u16.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (u32) for type u32.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (u64) for type u64.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (u128) for type u128.
Source § Available on crate features to_min or to_max or to_zero only.
Min value (usize) for type usize.