[][src]Struct osmpbf::block::PrimitiveBlock

pub struct PrimitiveBlock { /* fields omitted */ }

A PrimitiveBlock. It contains a sequence of groups.

Methods

impl PrimitiveBlock[src]

Important traits for BlockElementsIter<'a>
pub fn elements(&self) -> BlockElementsIter[src]

Returns an iterator over the elements in this PrimitiveBlock.

Important traits for GroupIter<'a>
pub fn groups(&self) -> GroupIter[src]

Returns an iterator over the groups in this PrimitiveBlock.

pub fn for_each_element<F>(&self, f: F) where
    F: for<'a> FnMut(Element<'a>), 
[src]

Calls the given closure on each element.

pub fn raw_stringtable(&self) -> &[Vec<u8>][src]

Returns the raw stringtable. Elements in a PrimitiveBlock do not store strings themselves; instead, they just store indices to the stringtable. By convention, the contained strings are UTF-8 encoded but it is not safe to assume that (use std::str::from_utf8).

Trait Implementations

impl Clone for PrimitiveBlock[src]

impl Debug for PrimitiveBlock[src]

Auto Trait Implementations

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.