Trait interval::ops::Width [−][src]
pub trait Width: Ord + Clone { type Output: Unsigned + Integer + Clone; fn max_value() -> Self; fn min_value() -> Self; fn width(lower: &Self, upper: &Self) -> Self::Output; }
Limit of a bound for which the distance between min_value() and max_value() can be represented in the type Output.
Associated Types
Required Methods
fn max_value() -> Self
fn min_value() -> Self
fn width(lower: &Self, upper: &Self) -> Self::Output
The result might be infinite depending on the underlying type (think about floating types).
Implementations on Foreign Types
impl Width for u8[src]
impl Width for u8impl Width for u16[src]
impl Width for u16impl Width for u32[src]
impl Width for u32impl Width for u64[src]
impl Width for u64impl Width for usize[src]
impl Width for usizeimpl Width for i8[src]
impl Width for i8impl Width for i16[src]
impl Width for i16impl Width for i32[src]
impl Width for i32impl Width for i64[src]
impl Width for i64impl Width for isize[src]
impl Width for isize