Trait vector_core::event::array::EventContainer
source · pub trait EventContainer: ByteSizeOf + EstimatedJsonEncodedSizeOf {
type IntoIter: Iterator<Item = Event>;
// Required methods
fn len(&self) -> usize;
fn into_events(self) -> Self::IntoIter;
// Provided method
fn is_empty(&self) -> bool { ... }
}
Expand description
The core trait to abstract over any type that may work as an array
of events. This is effectively the same as the standard
IntoIterator<Item = Event>
implementations, but that would
conflict with the base implementation for the type aliases below.
Required Associated Types§
Required Methods§
sourcefn into_events(self) -> Self::IntoIter
fn into_events(self) -> Self::IntoIter
Turn this container into an iterator over Event
.