pub fn is_hat_free(&self, hat: Hat) -> bool {
        for i in 0..self.wears.len() {
            if self.wears[i] == Some(hat) {return false};
        }
        return true;
    }
/// Returns whether a hat is weared by anyone.
Returns whether a hat is weared by anyone.
Returns whether a hat is weared by anyone .
pub fn is_hat_free(&self, hat: Hat) -> bool {
        for i in 0..self.wears.len() {
            if self.wears[i] == Some(hat) {return false};
        }
        return true;
    }
pub fn is_hat_free ( & self , hat : Hat ) -> bool { for i in 0 .. self . wears . len ( ) { if self . wears [ i ] == Some ( hat ) { return false } ; } return true ; }
Returns whether a hat is weared by anyone.
Returns whether a hat is weared by anyone .
&self
hat
Hat
&self
hat
Hat