pub fn to_bytes(&self) -> Vec<u8> {
        let mut res = Vec::<u8>::new();
        for card in &self.0 {
            res.push(card.to_byte());
        }
        res
    }
/// Convert a sequence to an array of bytes
///
/// # Example
///
/// ```
/// use machiavelli::sequence_cards::{ Sequence, Card::* , Suit::*};
///
/// let cards = [
///     Joker, 
///     RegularCard(Heart, 1),
///     RegularCard(Diamond, 7),
///     RegularCard(Club, 9),
///     RegularCard(Spade, 12),
/// ];
/// let sequence = Sequence::from_cards(&cards);
///
/// let bytes = sequence.to_bytes();
///
/// assert_eq!(vec![0, 1, 33, 22, 51], bytes);
/// ```
Convert a sequence to an array of bytes
Convert a sequence to an array of bytes
pub fn to_bytes(&self) -> Vec<u8> {
        let mut res = Vec::<u8>::new();
        for card in &self.0 {
            res.push(card.to_byte());
        }
        res
    }
pub fn to_bytes ( & self ) -> Vec < u8 > { let mut res = Vec :: < u8 > :: new ( ) ; for card in & self . 0 { res . push ( card . to_byte ( ) ) ; } res }
Convert a sequence to an array of bytes
Convert a sequence to an array of bytes
&self
&self
example
```
use machiavelli::sequence_cards::{ Sequence, Card::* , Suit::*}.

let cards = [
Joker,
RegularCard(Heart, 1),
RegularCard(Diamond, 7),
RegularCard(Club, 9),
RegularCard(Spade, 12),
];
let sequence = Sequence::from_cards(&cards).

let bytes = sequence.to_bytes().


` ` ` use machiavelli :: sequence_cards :: { Sequence Card :: * Suit :: * } . let cards = [ Joker RegularCard ( Heart 1 ) RegularCard ( Diamond 7 ) RegularCard ( Club 9 ) RegularCard ( Spade 12 ) ] ; let sequence = Sequence :: from_cards ( &cards ) . let bytes = sequence . to_bytes () .