Struct osmpbf::block::PrimitiveBlock
source · pub struct PrimitiveBlock { /* private fields */ }
Expand description
A PrimitiveBlock
. It contains a sequence of groups.
Implementations§
source§impl PrimitiveBlock
impl PrimitiveBlock
sourcepub fn elements(&self) -> BlockElementsIter<'_> ⓘ
pub fn elements(&self) -> BlockElementsIter<'_> ⓘ
Returns an iterator over the elements in this PrimitiveBlock
.
sourcepub fn groups(&self) -> GroupIter<'_> ⓘ
pub fn groups(&self) -> GroupIter<'_> ⓘ
Returns an iterator over the groups in this PrimitiveBlock
.
sourcepub fn for_each_element<F>(&self, f: F)
pub fn for_each_element<F>(&self, f: F)
Calls the given closure on each element.
sourcepub fn raw_stringtable(&self) -> &[Vec<u8>]
pub fn raw_stringtable(&self) -> &[Vec<u8>]
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§
source§impl Clone for PrimitiveBlock
impl Clone for PrimitiveBlock
source§fn clone(&self) -> PrimitiveBlock
fn clone(&self) -> PrimitiveBlock
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 RefUnwindSafe for PrimitiveBlock
impl Send for PrimitiveBlock
impl Sync for PrimitiveBlock
impl Unpin for PrimitiveBlock
impl UnwindSafe for PrimitiveBlock
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