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
Auto Trait Implementations§
impl Freeze for ItemBuffer
impl RefUnwindSafe for ItemBuffer
impl Send for ItemBuffer
impl Sync for ItemBuffer
impl Unpin for ItemBuffer
impl UnwindSafe for ItemBuffer
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