pub fn to_bytes(&self) -> Result<Vec<u8>, Error> {
        let mut v = Vec::with_capacity(self.compute_size());
        self.write_to(&mut v)?;
        Ok(v)
    }
/// Encode the tile and return the bytes.
Encode the tile and return the bytes.
Encode the tile and return the bytes .
pub fn to_bytes(&self) -> Result<Vec<u8>, Error> {
        let mut v = Vec::with_capacity(self.compute_size());
        self.write_to(&mut v)?;
        Ok(v)
    }
pub fn to_bytes ( & self ) -> Result < Vec < u8 > , Error > { let mut v = Vec :: with_capacity ( self . compute_size ( ) ) ; self . write_to ( & mut v ) ? ; Ok ( v ) }
Encode the tile and return the bytes.
Encode the tile and return the bytes .
&self