fn to_bytes(&self) -> Vec<u8> {
        let mut buffer = Vec::new();
        self.serialize(&mut buffer);
        buffer
    }
/// Convenience function to serialize the object into a new buffer
/// and return its bytes. It is more efficient to reuse a existing
/// buffer with [`Serializable::serialize`].
Convenience function to serialize the object into a new buffer
and return its bytes. It is more efficient to reuse a existing
buffer with [`Serializable::serialize`].
Convenience function to serialize the object into a new buffer and return its bytes . It is more efficient to reuse a existing buffer with [ ` Serializable :: serialize ` ] .
fn to_bytes(&self) -> Vec<u8> {
        let mut buffer = Vec::new();
        self.serialize(&mut buffer);
        buffer
    }
fn to_bytes ( & self ) -> Vec < u8 > { let mut buffer = Vec :: new ( ) ; self . serialize ( & mut buffer ) ; buffer }
Convenience function to serialize the object into a new buffer
and return its bytes.
Convenience function to serialize the object into a new buffer and return its bytes .
&self
&self