Function valid [src]

Prototype

pub fn valid(x: u8) bool

Parameters

x: u8

Source

pub fn valid(x: u8) bool { return x >= 0 and x <= LAST_CAP; }