[−][src]Struct osmpbf::block::PrimitiveBlock
A PrimitiveBlock
. It contains a sequence of groups.
Methods
impl PrimitiveBlock
[src]
pub fn elements(&self) -> BlockElementsIter
[src]
Returns an iterator over the elements in this PrimitiveBlock
.
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]
F: for<'a> FnMut(Element<'a>),
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]
fn clone(&self) -> PrimitiveBlock
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PrimitiveBlock
[src]
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveBlock
impl Send for PrimitiveBlock
impl Sync for PrimitiveBlock
impl Unpin for PrimitiveBlock
impl UnwindSafe for PrimitiveBlock
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,