Bounded in num_traits::bounds - Rust
Description: Numbers which have upper and lower bounds
Keywords: rust, rustlang, rust-lang, Bounded

# Trait num_traits::bounds::Bounded

source ·

    pub trait Bounded {
        fn min_value() -> Self;
        fn max_value() -> Self;
    }

Expand description

Numbers which have upper and lower bounds

## Required Methods§

source

#### fn min_value() -> Self

Returns the smallest finite number this type can represent

source

#### fn max_value() -> Self

Returns the largest finite number this type can represent

## Implementations on Foreign Types§

source§

### impl Bounded for usize

source§

#### fn min_value() -> usize

source§

#### fn max_value() -> usize

source§

### impl Bounded for u8

source§

#### fn min_value() -> u8

source§

#### fn max_value() -> u8

source§

### impl Bounded for u16

source§

#### fn min_value() -> u16

source§

#### fn max_value() -> u16

source§

### impl Bounded for u32

source§

#### fn min_value() -> u32

source§

#### fn max_value() -> u32

source§

### impl Bounded for u64

source§

#### fn min_value() -> u64

source§

#### fn max_value() -> u64

source§

### impl Bounded for u128

source§

#### fn min_value() -> u128

source§

#### fn max_value() -> u128

source§

### impl Bounded for isize

source§

#### fn min_value() -> isize

source§

#### fn max_value() -> isize

source§

### impl Bounded for i8

source§

#### fn min_value() -> i8

source§

#### fn max_value() -> i8

source§

### impl Bounded for i16

source§

#### fn min_value() -> i16

source§

#### fn max_value() -> i16

source§

### impl Bounded for i32

source§

#### fn min_value() -> i32

source§

#### fn max_value() -> i32

source§

### impl Bounded for i64

source§

#### fn min_value() -> i64

source§

#### fn max_value() -> i64

source§

### impl Bounded for i128

source§

#### fn min_value() -> i128

source§

#### fn max_value() -> i128

source§

### impl<T: Bounded> Bounded for Wrapping<T>

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl Bounded for f32

source§

#### fn min_value() -> f32

source§

#### fn max_value() -> f32

source§

### impl<A: Bounded, B: Bounded, C: Bounded, D: Bounded, E: Bounded, F: Bounded, G: Bounded, H: Bounded, I: Bounded, J: Bounded, K: Bounded, L: Bounded, M: Bounded, N: Bounded, O: Bounded, P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<B: Bounded, C: Bounded, D: Bounded, E: Bounded, F: Bounded, G: Bounded, H: Bounded, I: Bounded, J: Bounded, K: Bounded, L: Bounded, M: Bounded, N: Bounded, O: Bounded, P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<C: Bounded, D: Bounded, E: Bounded, F: Bounded, G: Bounded, H: Bounded, I: Bounded, J: Bounded, K: Bounded, L: Bounded, M: Bounded, N: Bounded, O: Bounded, P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<D: Bounded, E: Bounded, F: Bounded, G: Bounded, H: Bounded, I: Bounded, J: Bounded, K: Bounded, L: Bounded, M: Bounded, N: Bounded, O: Bounded, P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<E: Bounded, F: Bounded, G: Bounded, H: Bounded, I: Bounded, J: Bounded, K: Bounded, L: Bounded, M: Bounded, N: Bounded, O: Bounded, P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<F: Bounded, G: Bounded, H: Bounded, I: Bounded, J: Bounded, K: Bounded, L: Bounded, M: Bounded, N: Bounded, O: Bounded, P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<G: Bounded, H: Bounded, I: Bounded, J: Bounded, K: Bounded, L: Bounded, M: Bounded, N: Bounded, O: Bounded, P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (G, H, I, J, K, L, M, N, O, P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<H: Bounded, I: Bounded, J: Bounded, K: Bounded, L: Bounded, M: Bounded, N: Bounded, O: Bounded, P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (H, I, J, K, L, M, N, O, P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<I: Bounded, J: Bounded, K: Bounded, L: Bounded, M: Bounded, N: Bounded, O: Bounded, P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (I, J, K, L, M, N, O, P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<J: Bounded, K: Bounded, L: Bounded, M: Bounded, N: Bounded, O: Bounded, P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (J, K, L, M, N, O, P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<K: Bounded, L: Bounded, M: Bounded, N: Bounded, O: Bounded, P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (K, L, M, N, O, P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<L: Bounded, M: Bounded, N: Bounded, O: Bounded, P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (L, M, N, O, P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<M: Bounded, N: Bounded, O: Bounded, P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (M, N, O, P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<N: Bounded, O: Bounded, P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (N, O, P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<O: Bounded, P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (O, P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<P: Bounded, Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (P, Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<Q: Bounded, R: Bounded, S: Bounded, T: Bounded> Bounded for (Q, R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<R: Bounded, S: Bounded, T: Bounded> Bounded for (R, S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<S: Bounded, T: Bounded> Bounded for (S, T)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl<T: Bounded> Bounded for (T,)

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl Bounded for ()

source§

#### fn min_value() -> Self

source§

#### fn max_value() -> Self

source§

### impl Bounded for f64

source§

#### fn min_value() -> f64

source§

#### fn max_value() -> f64

## Implementors§