pub trait Bounded {
    // Required methods
    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 i16

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 Bounded for u64

source§

impl<T: Bounded> Bounded for Wrapping<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<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<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<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 Bounded for i128

source§

impl Bounded for u8

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<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<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 Bounded for u128

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<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<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 Bounded for u16

source§

impl Bounded for i32

source§

impl Bounded for i64

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 Bounded for f64

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 Bounded for f32

source§

impl Bounded for ()

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<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 Bounded for usize

source§

impl Bounded for isize

source§

impl Bounded for u32

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<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<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<S: Bounded, T: Bounded> Bounded for (S, T)

source§

fn min_value() -> Self

source§

fn max_value() -> Self

source§

impl Bounded for i8

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

Implementors§