Struct libosmium::ItemBuffer
source · pub struct ItemBuffer { /* private fields */ }
Expand description
Buffer to clone OSM items into
Implementations§
source§impl ItemBuffer
impl ItemBuffer
sourcepub fn with_capacity(size: usize) -> Self
pub fn with_capacity(size: usize) -> Self
Constructs a new, empty buffer with at least the specified capacity.
Note the capacity is in bytes not number of items, since they are all dynamically sized.
sourcepub fn iter(&self) -> ItemBufferIterator<'_>
pub fn iter(&self) -> ItemBufferIterator<'_>
Returns an iterator over the buffer.
The iterator yields all items from start to end.
Trait Implementations§
source§impl Clone for ItemBuffer
impl Clone for ItemBuffer
source§fn clone(&self) -> ItemBuffer
fn clone(&self) -> ItemBuffer
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 moresource§impl Debug for ItemBuffer
impl Debug for ItemBuffer
source§impl Default for ItemBuffer
impl Default for ItemBuffer
source§fn default() -> ItemBuffer
fn default() -> ItemBuffer
Returns the “default value” for a type. Read more