usestd::io::Write;////// Array of bytes. Allows to store any serialized structure.
///pubtypeSerialized=Vec<u8>;////// A trait which makes structure convertable to Vec<u8>
///pubtraitSerializable{////// Serializes structure to array of bytes
///fnserialize(&self)-> Serialized;////// Dumps serializable to specified file
////// # Arguments
/// * file_name: String: a filename to save serializable to
///fndump(&self, file_name:&str){letmut file =std::fs::File::create(file_name).unwrap();
file.write_all(&self.serialize()).unwrap();}}