Trait Max
Source pub trait Max {
const MAX: Self;
}
Expand description
Defines the maximum value of a type.
The maximum value of Self
.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
The maximum value of a bool
: true
.
Source§The highest value representable by this type, positive infinity.
Source§The highest value representable by this type, positive infinity.
Source§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.
Source§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.
Source§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.
Source§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.
Source§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.
Source§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.
Source§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.
Source§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.
Source§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.
Source§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.
Source§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.
Source§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.