Struct open_coroutine_timer::TimerList
source · #[repr(C)]pub struct TimerList<T> { /* private fields */ }
Implementations§
source§impl<T> TimerList<T>
impl<T> TimerList<T>
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn insert(&mut self, time: u64, t: T)
pub fn front(&self) -> Option<&TimerEntry<T>>
pub fn pop_front(&mut self) -> Option<TimerEntry<T>>
pub fn is_empty(&self) -> bool
pub fn get_entry(&mut self, time: u64) -> Option<&mut TimerEntry<T>>
pub fn iter_mut(&mut self) -> IterMut<'_, TimerEntry<T>>
pub fn iter(&self) -> Iter<'_, TimerEntry<T>>
Trait Implementations§
source§impl<T: PartialEq> PartialEq<TimerList<T>> for TimerList<T>
impl<T: PartialEq> PartialEq<TimerList<T>> for TimerList<T>
impl<T: Eq> Eq for TimerList<T>
impl<T> StructuralEq for TimerList<T>
impl<T> StructuralPartialEq for TimerList<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for TimerList<T>where T: RefUnwindSafe,
impl<T> Send for TimerList<T>where T: Send,
impl<T> Sync for TimerList<T>where T: Sync,
impl<T> Unpin for TimerList<T>where T: Unpin,
impl<T> UnwindSafe for TimerList<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