[][src]Struct osmpbf::mmap_blob::MmapBlob

pub struct MmapBlob<'a> { /* fields omitted */ }

A PBF blob from a memory map.

Methods

impl<'a> MmapBlob<'a>[src]

pub fn decode(&'a self) -> Result<BlobDecode<'a>>[src]

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 get_type(&self) -> BlobType[src]

Returns the type of a blob without decoding its content.

pub fn offset(&self) -> ByteOffset[src]

Returns the byte offset of the blob from the start of its memory map.

Trait Implementations

impl<'a> Clone for MmapBlob<'a>[src]

impl<'a> Debug for MmapBlob<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for MmapBlob<'a>

impl<'a> Send for MmapBlob<'a>

impl<'a> Sync for MmapBlob<'a>

impl<'a> Unpin for MmapBlob<'a>

impl<'a> UnwindSafe for MmapBlob<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.