pub trait Max {
    const MAX: Self;
}
Expand description

Defines the maximum value of a type.

Required Associated Constants

The maximum value of Self.

Implementations on Foreign Types

The maximum value of a bool: true.

The maximum value of a char: '\u{10ffff}'.

This is a character in Supplementary Private Use Area-B.

The highest value representable by this type, positive infinity.

The highest value representable by this type, positive infinity.

The highest value representable by this type.

If Self is unsigned, MAX is $2^W-1$. If Self is signed, MAX is $2^{W-1}-1$.

Examples

See here.

The highest value representable by this type.

If Self is unsigned, MAX is $2^W-1$. If Self is signed, MAX is $2^{W-1}-1$.

Examples

See here.

The highest value representable by this type.

If Self is unsigned, MAX is $2^W-1$. If Self is signed, MAX is $2^{W-1}-1$.

Examples

See here.

The highest value representable by this type.

If Self is unsigned, MAX is $2^W-1$. If Self is signed, MAX is $2^{W-1}-1$.

Examples

See here.

The highest value representable by this type.

If Self is unsigned, MAX is $2^W-1$. If Self is signed, MAX is $2^{W-1}-1$.

Examples

See here.

The highest value representable by this type.

If Self is unsigned, MAX is $2^W-1$. If Self is signed, MAX is $2^{W-1}-1$.

Examples

See here.

The highest value representable by this type.

If Self is unsigned, MAX is $2^W-1$. If Self is signed, MAX is $2^{W-1}-1$.

Examples

See here.

The highest value representable by this type.

If Self is unsigned, MAX is $2^W-1$. If Self is signed, MAX is $2^{W-1}-1$.

Examples

See here.

The highest value representable by this type.

If Self is unsigned, MAX is $2^W-1$. If Self is signed, MAX is $2^{W-1}-1$.

Examples

See here.

The highest value representable by this type.

If Self is unsigned, MAX is $2^W-1$. If Self is signed, MAX is $2^{W-1}-1$.

Examples

See here.

The highest value representable by this type.

If Self is unsigned, MAX is $2^W-1$. If Self is signed, MAX is $2^{W-1}-1$.

Examples

See here.

The highest value representable by this type.

If Self is unsigned, MAX is $2^W-1$. If Self is signed, MAX is $2^{W-1}-1$.

Examples

See here.

Implementors