Enum osmpbf::blob::BlobDecode
source · pub enum BlobDecode<'a> {
OsmHeader(Box<HeaderBlock>),
OsmData(PrimitiveBlock),
Unknown(&'a str),
}
Expand description
The decoded content of a blob (analogous to BlobType
).
Variants§
OsmHeader(Box<HeaderBlock>)
Blob contains a HeaderBlock
.
OsmData(PrimitiveBlock)
Blob contains a PrimitiveBlock
.
Unknown(&'a str)
An unknown blob type with the given string identifier. Parsers should ignore unknown blobs they do not expect.
Trait Implementations§
source§impl<'a> Clone for BlobDecode<'a>
impl<'a> Clone for BlobDecode<'a>
source§fn clone(&self) -> BlobDecode<'a>
fn clone(&self) -> BlobDecode<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for BlobDecode<'a>
impl<'a> Send for BlobDecode<'a>
impl<'a> Sync for BlobDecode<'a>
impl<'a> Unpin for BlobDecode<'a>
impl<'a> UnwindSafe for BlobDecode<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more