pub trait IsZero { // Required method fn is_zero(&self) -> bool; }
Trait that allows you to check whether value is zero
Checks whether self is zero
self