[−][src]Struct osmpbf::block::PrimitiveBlock
A PrimitiveBlock
. It contains a sequence of groups.
Implementations
impl PrimitiveBlock
[src]
pub fn elements(&self) -> BlockElementsIter<'_>ⓘNotable traits for BlockElementsIter<'a>
impl<'a> Iterator for BlockElementsIter<'a> type Item = Element<'a>;
[src]
Notable traits for BlockElementsIter<'a>
impl<'a> Iterator for BlockElementsIter<'a> type Item = Element<'a>;
Returns an iterator over the elements in this PrimitiveBlock
.
pub fn groups(&self) -> GroupIter<'_>ⓘNotable traits for GroupIter<'a>
impl<'a> Iterator for GroupIter<'a> type Item = PrimitiveGroup<'a>;
[src]
Notable traits for GroupIter<'a>
impl<'a> Iterator for GroupIter<'a> type Item = PrimitiveGroup<'a>;
Returns an iterator over the groups in this PrimitiveBlock
.
pub fn for_each_element<F>(&self, mut 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]
pub fn clone(&self) -> PrimitiveBlock
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PrimitiveBlock
[src]
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveBlock
[src]
impl Send for PrimitiveBlock
[src]
impl Sync for PrimitiveBlock
[src]
impl Unpin for PrimitiveBlock
[src]
impl UnwindSafe for PrimitiveBlock
[src]
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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,