Struct osmpbf::blob::Blob [−][src]
pub struct Blob { /* fields omitted */ }
Expand description
A blob.
A PBF file consists of a sequence of blobs. This type supports decoding the content of a blob to different types of blocks that are usually more interesting to the user.
Implementations
Decodes the Blob and tries to obtain the inner content (usually a HeaderBlock
or a
PrimitiveBlock
). This operation might involve an expensive decompression step.
Returns the byte offset of the blob from the start of its source stream.
This might be None
if the source stream does not implement Seek
.
Tries to decode the blob to a HeaderBlock
. This operation might involve an expensive
decompression step.
Tries to decode the blob to a PrimitiveBlock
. This operation might involve an expensive
decompression step.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Blob
impl UnwindSafe for Blob
Blanket Implementations
Mutably borrows from an owned value. Read more