pub struct MsgM<'a, T: 'static + Message> { /* private fields */ }Implementations§
Methods from Deref<Target = Messages<T>>§
Sourcepub fn swap(&mut self)
pub fn swap(&mut self)
Swaps the current and previous frame message lists.
This should be called at the start of each new frame (update) to transition messages appropriately.
Sourcepub fn iter_current(&self) -> MessagesIterator<'_, M> ⓘ
pub fn iter_current(&self) -> MessagesIterator<'_, M> ⓘ
Returns an iterator over the current frame’s messages.
Sourcepub fn iter_previous(&self) -> MessagesIterator<'_, M> ⓘ
pub fn iter_previous(&self) -> MessagesIterator<'_, M> ⓘ
Returns an iterator over the previous frame’s messages.
Sourcepub fn len_current(&self) -> usize
pub fn len_current(&self) -> usize
Returns the number of messages in the current frame.
Sourcepub fn len_previous(&self) -> usize
pub fn len_previous(&self) -> usize
Returns the number of messages in the previous frame.
Sourcepub fn is_empty_current(&self) -> bool
pub fn is_empty_current(&self) -> bool
Checks if there are no messages in the current frame.
Sourcepub fn is_empty_previous(&self) -> bool
pub fn is_empty_previous(&self) -> bool
Checks if there are no messages in the previous frame.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for MsgM<'a, T>
impl<'a, T> RefUnwindSafe for MsgM<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for MsgM<'a, T>
impl<'a, T> Sync for MsgM<'a, T>
impl<'a, T> Unpin for MsgM<'a, T>
impl<'a, T> !UnwindSafe for MsgM<'a, T>
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