Function lib::util::other::nz

source ·
pub fn nz<T: PartialEq + From<u8>>(n: T) -> bool
Expand description

n != 0.

§Examples

use lib::util::other::nz;
let mut q = 3;
while nz(q) { q -= 1;}