pub struct EventVec { /* private fields */ }
Expand description
A vector of Event
s, plus context for interpreting them.
Implementations§
source§impl EventVec
impl EventVec
sourcepub unsafe fn from_raw_parts(
ptr: *mut Event,
len: usize,
capacity: usize
) -> Self
pub unsafe fn from_raw_parts( ptr: *mut Event, len: usize, capacity: usize ) -> Self
Constructs an EventVec
from raw pointer, length, and capacity.
Safety
This function calls Vec::from_raw_parts
with its arguments.
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.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for EventVec
impl !Send for EventVec
impl !Sync for EventVec
impl Unpin for EventVec
impl UnwindSafe for EventVec
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