Trait opendp::traits::FiniteBounds

source ·
pub trait FiniteBounds {
    const MAX_FINITE: Self;
    const MIN_FINITE: Self;
}
Expand description

Consts representing the maximum and minimum finite representable values.

Required Associated Constants§

source

const MAX_FINITE: Self

§Proof Definition

Self::MAX_FINITE is the largest permissible finite value that can be represented by Self.

source

const MIN_FINITE: Self

§Proof Definition

Self::MIN_FINITE is the smallest permissible finite value that can be represented by Self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FiniteBounds for f32

source§

const MAX_FINITE: Self = 3.40282347E+38f32

source§

const MIN_FINITE: Self = -3.40282347E+38f32

source§

impl FiniteBounds for f64

source§

const MAX_FINITE: Self = 1.7976931348623157E+308f64

source§

const MIN_FINITE: Self = -1.7976931348623157E+308f64

source§

impl FiniteBounds for i8

source§

const MAX_FINITE: Self = 127i8

source§

const MIN_FINITE: Self = -128i8

source§

impl FiniteBounds for i16

source§

const MAX_FINITE: Self = 32_767i16

source§

const MIN_FINITE: Self = -32_768i16

source§

impl FiniteBounds for i32

source§

const MAX_FINITE: Self = 2_147_483_647i32

source§

const MIN_FINITE: Self = -2_147_483_648i32

source§

impl FiniteBounds for i64

source§

const MAX_FINITE: Self = 9_223_372_036_854_775_807i64

source§

const MIN_FINITE: Self = -9_223_372_036_854_775_808i64

source§

impl FiniteBounds for i128

source§

const MAX_FINITE: Self = 170_141_183_460_469_231_731_687_303_715_884_105_727i128

source§

const MIN_FINITE: Self = -170_141_183_460_469_231_731_687_303_715_884_105_728i128

source§

impl FiniteBounds for isize

source§

const MAX_FINITE: Self = 2_147_483_647isize

source§

const MIN_FINITE: Self = -2_147_483_648isize

source§

impl FiniteBounds for u8

source§

const MAX_FINITE: Self = 255u8

source§

const MIN_FINITE: Self = 0u8

source§

impl FiniteBounds for u16

source§

const MAX_FINITE: Self = 65_535u16

source§

const MIN_FINITE: Self = 0u16

source§

impl FiniteBounds for u32

source§

const MAX_FINITE: Self = 4_294_967_295u32

source§

const MIN_FINITE: Self = 0u32

source§

impl FiniteBounds for u64

source§

const MAX_FINITE: Self = 18_446_744_073_709_551_615u64

source§

const MIN_FINITE: Self = 0u64

source§

impl FiniteBounds for u128

source§

const MAX_FINITE: Self = 340_282_366_920_938_463_463_374_607_431_768_211_455u128

source§

const MIN_FINITE: Self = 0u128

source§

impl FiniteBounds for usize

source§

const MAX_FINITE: Self = 4_294_967_295usize

source§

const MIN_FINITE: Self = 0usize

Implementors§