pub type U<const N: usize> = Array<bool, N>;
Expand description
An unsigned integer with bitwidth N
.
The lower bits of the integer are represented by the lower index of the array, and vice versa. In other words, the
least significant bit of the integer is the 0th element of the array, and the most significant bit is the
(N
- 1)-th element.
struct U<const N: usize> { }
Adds two U<N>
s and truncate the result to U<N>
.
Returns the maximum value of an N
bit unsigned value. (i.e., 2^N
- 1)
The resulting type after applying the +
operator.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
The resulting type after applying the *
operator.
The resulting type after applying the !
operator.
This method returns an ordering between
self
and
other
values if one exists.
Read more
This method tests less than (for
self
and
other
) and is used by the
<
operator.
Read more
This method tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more
This method tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more
This method tests greater than or equal to (for
self
and
other
) and is used by the
>=
operator.
Read more
The resulting type after applying the <<
operator.
The resulting type after applying the <<
operator.
The resulting type after applying the >>
operator.
The resulting type after applying the >>
operator.
The resulting type after applying the -
operator.