pub fn encode_element_header(&mut self, de: DataElementHeader) -> Result<()> {
        let bytes = self
            .encoder
            .encode_element_header(&mut self.to, de)
            .context(EncodeData {
                position: self.bytes_written,
            })?;
        self.bytes_written += bytes as u64;
        Ok(())
    }
/// Encode and write a data element header.
Encode and write a data element header.
Encode and write a data element header .
pub fn encode_element_header(&mut self, de: DataElementHeader) -> Result<()> {
        let bytes = self
            .encoder
            .encode_element_header(&mut self.to, de)
            .context(EncodeData {
                position: self.bytes_written,
            })?;
        self.bytes_written += bytes as u64;
        Ok(())
    }
pub fn encode_element_header ( & mut self , de : DataElementHeader ) -> Result < ( ) > { let bytes = self . encoder . encode_element_header ( & mut self . to , de ) . context ( EncodeData { position : self . bytes_written , } ) ? ; self . bytes_written += bytes as u64 ; Ok ( ( ) ) }
Encode and write a data element header.
Encode and write a data element header .
&mut self
de
DataElementHeader
&mut self
de
DataElementHeader