pub struct TimerEntry<T> { /* private fields */ }
Implementations§
Source§impl<T> TimerEntry<T>
impl<T> TimerEntry<T>
pub fn new(time: u64) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get_time(&self) -> u64
pub fn pop_front(&mut self) -> Option<T>
pub fn push_back(&mut self, t: T)
pub fn remove(&mut self, t: T) -> Option<T>where
T: Ord,
pub fn iter_mut(&mut self) -> IterMut<'_, T>
pub fn iter(&self) -> Iter<'_, T>
Trait Implementations§
Source§impl<T: Debug> Debug for TimerEntry<T>
impl<T: Debug> Debug for TimerEntry<T>
Source§impl<T: PartialEq> PartialEq for TimerEntry<T>
impl<T: PartialEq> PartialEq for TimerEntry<T>
impl<T: Eq> Eq for TimerEntry<T>
impl<T> StructuralPartialEq for TimerEntry<T>
Auto Trait Implementations§
impl<T> Freeze for TimerEntry<T>
impl<T> RefUnwindSafe for TimerEntry<T>where
T: RefUnwindSafe,
impl<T> Send for TimerEntry<T>where
T: Send,
impl<T> Sync for TimerEntry<T>where
T: Sync,
impl<T> Unpin for TimerEntry<T>where
T: Unpin,
impl<T> UnwindSafe for TimerEntry<T>where
T: UnwindSafe,
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