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

Numbers which have upper and lower bounds

Required Methods§

Returns the smallest finite number this type can represent

Returns the largest finite number this type can represent

Implementations on Foreign Types§

Implementors§

impl<Frac> Bounded for FixedI8<Frac>

impl<Frac> Bounded for FixedI16<Frac>

impl<Frac> Bounded for FixedI32<Frac>

impl<Frac> Bounded for FixedI64<Frac>

impl<Frac> Bounded for FixedI128<Frac>

impl<Frac> Bounded for FixedU8<Frac>

impl<Frac> Bounded for FixedU16<Frac>

impl<Frac> Bounded for FixedU32<Frac>

impl<Frac> Bounded for FixedU64<Frac>

impl<Frac> Bounded for FixedU128<Frac>

impl Bounded for Weight

impl<T, R: DimName, C: DimName> Bounded for OMatrix<T, R, C>where
    T: Scalar + Bounded,
    DefaultAllocator: Allocator<T, R, C>,

impl<T: Scalar + Bounded, const D: usize> Bounded for Point<T, D>

impl<T: Float> Bounded for OrderedFloat<T>

impl<T: Float> Bounded for NotNan<T>

impl Bounded for FixedI64

impl Bounded for FixedU64

impl Bounded for Percent

impl Bounded for PerU16

impl Bounded for Permill

impl Bounded for Perbill