pub trait ExactIntBounds {
    const MAX_CONSECUTIVE: Self;
    const MIN_CONSECUTIVE: Self;
}
Expand description

Consts representing the maximum and minimum finite consecutive values.

This is also implemented for floats, as neighboring floating point values may differ by more than 1 when the mantissa is exhausted.

Required Associated Constants§

source

const MAX_CONSECUTIVE: Self

Proof Definition

Self::MAX_CONSECUTIVE is the largest integer-consecutive finite value that can be represented by Self.

source

const MIN_CONSECUTIVE: Self

Proof Definition

Self::MIN_CONSECUTIVE is the smallest integer-consecutive finite value that can be represented by Self.

Implementations on Foreign Types§

source§

impl ExactIntBounds for i64

source§

const MAX_CONSECUTIVE: Self = 9_223_372_036_854_775_807i64

source§

const MIN_CONSECUTIVE: Self = -9_223_372_036_854_775_808i64

source§

impl ExactIntBounds for isize

source§

const MAX_CONSECUTIVE: Self = 9_223_372_036_854_775_807isize

source§

const MIN_CONSECUTIVE: Self = -9_223_372_036_854_775_808isize

source§

impl ExactIntBounds for f32

source§

const MAX_CONSECUTIVE: Self = 16777216f32

source§

const MIN_CONSECUTIVE: Self = -16777216f32

source§

impl ExactIntBounds for usize

source§

const MAX_CONSECUTIVE: Self = 18_446_744_073_709_551_615usize

source§

const MIN_CONSECUTIVE: Self = 0usize

source§

impl ExactIntBounds for i32

source§

const MAX_CONSECUTIVE: Self = 2_147_483_647i32

source§

const MIN_CONSECUTIVE: Self = -2_147_483_648i32

source§

impl ExactIntBounds for u128

source§

const MAX_CONSECUTIVE: Self = 340_282_366_920_938_463_463_374_607_431_768_211_455u128

source§

const MIN_CONSECUTIVE: Self = 0u128

source§

impl ExactIntBounds for u8

source§

const MAX_CONSECUTIVE: Self = 255u8

source§

const MIN_CONSECUTIVE: Self = 0u8

source§

impl ExactIntBounds for u64

source§

const MAX_CONSECUTIVE: Self = 18_446_744_073_709_551_615u64

source§

const MIN_CONSECUTIVE: Self = 0u64

source§

impl ExactIntBounds for i128

source§

const MAX_CONSECUTIVE: Self = 170_141_183_460_469_231_731_687_303_715_884_105_727i128

source§

const MIN_CONSECUTIVE: Self = -170_141_183_460_469_231_731_687_303_715_884_105_728i128

source§

impl ExactIntBounds for u32

source§

const MAX_CONSECUTIVE: Self = 4_294_967_295u32

source§

const MIN_CONSECUTIVE: Self = 0u32

source§

impl ExactIntBounds for i16

source§

const MAX_CONSECUTIVE: Self = 32_767i16

source§

const MIN_CONSECUTIVE: Self = -32_768i16

source§

impl ExactIntBounds for i8

source§

const MAX_CONSECUTIVE: Self = 127i8

source§

const MIN_CONSECUTIVE: Self = -128i8

source§

impl ExactIntBounds for u16

source§

const MAX_CONSECUTIVE: Self = 65_535u16

source§

const MIN_CONSECUTIVE: Self = 0u16

source§

impl ExactIntBounds for f64

source§

const MAX_CONSECUTIVE: Self = 9007199254740992f64

source§

const MIN_CONSECUTIVE: Self = -9007199254740992f64

Implementors§