pub struct EventVec<'context, Context: Context> { /* private fields */ }
Expand description

A vector of Events, plus context for interpreting them.

Implementations

Constructs an EventVec with memory for capacity Events.

Returns the current Event capacity of this EventVec.

Reserves enough memory for at least additional more Events.

Reserves enough memory for exactly additional more Events.

Clears all the Events out of this EventVec.

Shrinks the capacity of this EventVec as much as possible.

Returns an iterator over the Events in this EventVec.

Returns the number of Events logically contained in this EventVec.

Tests whether this EventVec is logically empty.

Trait Implementations

Which kind of iterator are we turning this into?

The type of the elements being iterated over.

Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.