pub struct FixedEventQueue<T: EntityId> { /* private fields */ }Expand description
A simple event queue with fixed capacity. It is used to store a fixed amount of events and discard any events when the queue is full.
Implementations§
Trait Implementations§
Source§impl<T: Clone + EntityId> Clone for FixedEventQueue<T>
impl<T: Clone + EntityId> Clone for FixedEventQueue<T>
Source§fn clone(&self) -> FixedEventQueue<T>
fn clone(&self) -> FixedEventQueue<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: EntityId> Default for FixedEventQueue<T>
impl<T: EntityId> Default for FixedEventQueue<T>
impl<T: Eq + EntityId> Eq for FixedEventQueue<T>
Source§impl<T: PartialEq + EntityId> PartialEq for FixedEventQueue<T>
impl<T: PartialEq + EntityId> PartialEq for FixedEventQueue<T>
Source§fn eq(&self, other: &FixedEventQueue<T>) -> bool
fn eq(&self, other: &FixedEventQueue<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: PartialEq + EntityId> StructuralPartialEq for FixedEventQueue<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for FixedEventQueue<T>
impl<T> !UnwindSafe for FixedEventQueue<T>
impl<T> Freeze for FixedEventQueue<T>
impl<T> Send for FixedEventQueue<T>
impl<T> Sync for FixedEventQueue<T>
impl<T> Unpin for FixedEventQueue<T>where
T: Unpin,
impl<T> UnsafeUnpin for FixedEventQueue<T>
Blanket Implementations§
Source§impl<T> AsyncTaskResult for T
impl<T> AsyncTaskResult for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> ObjectOrVariant<T> for Uwhere
PhantomData<U>: ObjectOrVariantHelper<T, U>,
impl<T, U> ObjectOrVariant<T> for Uwhere
PhantomData<U>: ObjectOrVariantHelper<T, U>,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.