pub fn decode(&self) -> Result<BlobDecode> {
        match self.get_type() {
            BlobType::OsmHeader => {
                let block = Box::new(self.to_headerblock()?);
                Ok(BlobDecode::OsmHeader(block))

            },
            BlobType::OsmData => {
                let block = self.to_primitiveblock()?;
                Ok(BlobDecode::OsmData(block))
            },
            BlobType::Unknown(x) => Ok(BlobDecode::Unknown(x)),
        }
    }
/// Decodes the Blob and tries to obtain the inner content (usually a `HeaderBlock` or a
/// `PrimitiveBlock`). This operation might involve an expensive decompression step.
Decodes the Blob and tries to obtain the inner content (usually a `HeaderBlock` or a
`PrimitiveBlock`). This operation might involve an expensive decompression step.
Decodes the Blob and tries to obtain the inner content ( usually a ` HeaderBlock ` or a ` PrimitiveBlock ` ) . This operation might involve an expensive decompression step .
pub fn decode(&self) -> Result<BlobDecode> {
        match self.get_type() {
            BlobType::OsmHeader => {
                let block = Box::new(self.to_headerblock()?);
                Ok(BlobDecode::OsmHeader(block))
            },
            BlobType::OsmData => {
                let block = self.to_primitiveblock()?;
                Ok(BlobDecode::OsmData(block))
            },
            BlobType::Unknown(x) => Ok(BlobDecode::Unknown(x)),
        }
    }
pub fn decode ( & self ) -> Result < BlobDecode > { match self . get_type ( ) { BlobType :: OsmHeader => { let block = Box :: new ( self . to_headerblock ( ) ? ) ; Ok ( BlobDecode :: OsmHeader ( block ) ) } , BlobType :: OsmData => { let block = self . to_primitiveblock ( ) ? ; Ok ( BlobDecode :: OsmData ( block ) ) } , BlobType :: Unknown ( x ) => Ok ( BlobDecode :: Unknown ( x ) ) , } }
Decodes the Blob and tries to obtain the inner content (usually a `HeaderBlock` or a
`PrimitiveBlock`).
Decodes the Blob and tries to obtain the inner content ( usually a ` HeaderBlock ` or a ` PrimitiveBlock ` ) .
&self
&self