pub fn contains(&self, seq: &Sequence) -> bool {
        let count_rhs = seq.count_cards();
        let count_self = self.count_cards();
        for (card, count) in count_rhs {
            if !count_self.contains_key(&card) {
                return false;
            }
            if count_self[&card] < count {
                return false;
            }
        }
        true
    }
/// determine if the sequence contains another one
determine if the sequence contains another one
determine if the sequence contains another one
pub fn contains(&self, seq: &Sequence) -> bool {
        let count_rhs = seq.count_cards();
        let count_self = self.count_cards();
        for (card, count) in count_rhs {
            if !count_self.contains_key(&card) {
                return false;
            }
            if count_self[&card] < count {
                return false;
            }
        }
        true
    }
pub fn contains ( & self , seq : & Sequence ) -> bool { let count_rhs = seq . count_cards ( ) ; let count_self = self . count_cards ( ) ; for ( card , count ) in count_rhs { if ! count_self . contains_key ( & card ) { return false ; } if count_self [ & card ] < count { return false ; } } true }
determine if the sequence contains another one
determine if the sequence contains another one
&self
seq
&Sequence
&self
seq
&Sequence