Struct osmpbf::block::PrimitiveBlock [−][src]
pub struct PrimitiveBlock { /* fields omitted */ }
Expand description
A PrimitiveBlock
. It contains a sequence of groups.
Implementations
pub fn elements(&self) -> BlockElementsIter<'_>ⓘNotable traits for BlockElementsIter<'a>impl<'a> Iterator for BlockElementsIter<'a> type Item = Element<'a>;
pub fn elements(&self) -> BlockElementsIter<'_>ⓘNotable traits for BlockElementsIter<'a>impl<'a> Iterator for BlockElementsIter<'a> type Item = Element<'a>;
Notable traits for BlockElementsIter<'a>
impl<'a> Iterator for BlockElementsIter<'a> type Item = Element<'a>;
Returns an iterator over the elements in this PrimitiveBlock
.
Returns an iterator over the groups in this PrimitiveBlock
.
Calls the given closure on each element.
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
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
Mutably borrows from an owned value. Read more