pub struct CycleQueue<T> { /* private fields */ }Implementations§
Source§impl<T> CycleQueue<T>
impl<T> CycleQueue<T>
pub fn new() -> Self
pub fn new_withcapacity(capacity: usize) -> Self
pub fn is_empty(&self) -> bool
pub fn is_full(&self) -> bool
pub fn push_back(&mut self, item: T) -> (Status, Result<String>)
pub fn remove_front(&mut self) -> (Status, Option<T>)
pub fn clear(&mut self)
pub fn get_item(&self) -> T
pub fn get_itemidx(&self, index: usize) -> T
pub fn get_currsize(&self) -> usize
Trait Implementations§
Source§impl<T: Debug> Debug for CycleQueue<T>
impl<T: Debug> Debug for CycleQueue<T>
Source§impl<T: Default> Default for CycleQueue<T>
impl<T: Default> Default for CycleQueue<T>
Source§fn default() -> CycleQueue<T>
fn default() -> CycleQueue<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for CycleQueue<T>
impl<T> RefUnwindSafe for CycleQueue<T>where
T: RefUnwindSafe,
impl<T> Send for CycleQueue<T>where
T: Send,
impl<T> Sync for CycleQueue<T>where
T: Sync,
impl<T> Unpin for CycleQueue<T>where
T: Unpin,
impl<T> UnwindSafe for CycleQueue<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