Trait arbitrary_int::Number
source · pub trait Number: Sized {
type UnderlyingType: Debug + From<u8> + TryFrom<u16> + TryFrom<u32> + TryFrom<u64> + TryFrom<u128>;
const BITS: usize;
const MIN: Self;
const MAX: Self;
// Required methods
fn new(value: Self::UnderlyingType) -> Self;
fn try_new(value: Self::UnderlyingType) -> Result<Self, TryNewError>;
fn value(self) -> Self::UnderlyingType;
}