pub struct EventVec<'context, Context: Context> { /* private fields */ }Expand description
A vector of Events, plus context for interpreting them.
Implementations
sourceimpl<'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 Events.
sourcepub fn reserve(&mut self, additional: usize)
 
pub fn reserve(&mut self, additional: usize)
Reserves enough memory for at least additional more Events.
sourcepub fn reserve_exact(&mut self, additional: usize)
 
pub fn reserve_exact(&mut self, additional: usize)
Reserves enough memory for exactly additional more Events.
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>ⓘNotable traits for Iter<'context, Context>impl<'context, Context: Context> Iterator for Iter<'context, Context>    type Item = (EventFlags, Ref<'context, Context::Target>);
 
pub fn iter(&self) -> Iter<'_, Context>ⓘNotable traits for Iter<'context, Context>impl<'context, Context: Context> Iterator for Iter<'context, Context>    type Item = (EventFlags, Ref<'context, Context::Target>);
Returns an iterator over the Events in this EventVec.
Trait Implementations
sourceimpl<'context, Context: Context> IntoIterator for &'context EventVec<'context, Context>
 
impl<'context, Context: Context> IntoIterator for &'context EventVec<'context, Context>
Auto Trait Implementations
impl<'context, Context> RefUnwindSafe for EventVec<'context, Context> where
    Context: RefUnwindSafe, 
impl<'context, Context> !Send for EventVec<'context, Context>
impl<'context, Context> !Sync for EventVec<'context, Context>
impl<'context, Context> Unpin for EventVec<'context, Context>
impl<'context, Context> UnwindSafe for EventVec<'context, Context> where
    Context: RefUnwindSafe, 
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more