u8
Expand description
8-bit unsigned integer
Implementations
fn is_zero(self) -> bool
fn is_zero(self) -> bool
Returns whether a u8
is set to zero.
Returns
- [bool] -> True if the
u8
is zero, otherwise false.
Examples
fn foo() {
let zero_u8 = u8::zero();
assert(zero_u8.is_zero());
}