num::traits

Trait Bounded

Source
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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Bounded for f32

Source§

impl Bounded for f64

Source§

impl Bounded for i8

Source§

impl Bounded for i16

Source§

impl Bounded for i32

Source§

impl Bounded for i64

Source§

impl Bounded for i128

Source§

impl Bounded for isize

Source§

impl Bounded for u8

Source§

impl Bounded for u16

Source§

impl Bounded for u32

Source§

impl Bounded for u64

Source§

impl Bounded for u128

Source§

impl Bounded for ()

Source§

impl Bounded for usize

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
where 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,

Source§

impl<B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
where 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,

Source§

impl<C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
where 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,

Source§

impl<D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
where 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,

Source§

impl<E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
where 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,

Source§

impl<F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
where 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,

Source§

impl<G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
where 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,

Source§

impl<H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (H, I, J, K, L, M, N, O, P, Q, R, S, T)
where 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,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T> Bounded for Wrapping<T>
where T: Bounded,

Implementors§