pub struct EventVec<'context, Context: Context> { /* private fields */ }
Expand description
A vector of Event
s, plus context for interpreting them.
Implementations§
source§impl<'context, Context: Context> EventVec<'context, Context>
impl<'context, Context: Context> EventVec<'context, Context>
sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Constructs an EventVec
with memory for capacity
Event
s.
sourcepub fn reserve(&mut self, additional: usize)
pub fn reserve(&mut self, additional: usize)
Reserves enough memory for at least additional
more Event
s.
sourcepub fn reserve_exact(&mut self, additional: usize)
pub fn reserve_exact(&mut self, additional: usize)
Reserves enough memory for exactly additional
more Event
s.
sourcepub fn shrink_to_fit(&mut self)
pub fn shrink_to_fit(&mut self)
Shrinks the capacity of this EventVec
as much as possible.
sourcepub fn iter(&self) -> Iter<'_, Context> ⓘ
pub fn iter(&self) -> Iter<'_, Context> ⓘ
Returns an iterator over the Event
s in this EventVec
.