pub struct EventList { /* private fields */ }Expand description
Sample-ordered event buffer used for one process block.
Backed by SmallVec<[Event; 32]>: 32 inline entries cover
almost every block without heap allocation; bursts spill to
the heap rather than getting dropped. Cleared between blocks
by EventList::clear (keeps the heap allocation when one
was forced).
Implementations§
Source§impl EventList
impl EventList
Sourcepub fn new() -> Self
pub fn new() -> Self
An empty list with inline capacity for 32 events before spilling to the heap.
Sourcepub fn from_slice(events: &[Event]) -> Self
pub fn from_slice(events: &[Event]) -> Self
Build from an existing slice.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventList
impl RefUnwindSafe for EventList
impl Send for EventList
impl Sync for EventList
impl Unpin for EventList
impl UnsafeUnpin for EventList
impl UnwindSafe for EventList
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