It is better to use (0..255).contains(&128) than 128 >= 0 && 128 < 255. The syntax (a..b) create a Range struct. See more information here. https://doc.rust-lang.org/std/ops/struct.Range.html