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 u8
impl Width for u16
[src]
impl Width for u16
impl Width for u32
[src]
impl Width for u32
impl Width for u64
[src]
impl Width for u64
impl Width for usize
[src]
impl Width for usize
impl Width for i8
[src]
impl Width for i8
impl Width for i16
[src]
impl Width for i16
impl Width for i32
[src]
impl Width for i32
impl Width for i64
[src]
impl Width for i64
impl Width for isize
[src]
impl Width for isize