pub struct Deque<T> { /* private fields */ }Implementations§
Source§impl<T: Clone> Deque<T>
impl<T: Clone> Deque<T>
pub fn new(buf_size: usize) -> Self
pub fn size(&self) -> usize
pub fn buf_size(&self) -> usize
pub fn is_full(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn push_right(&mut self, x: T)
pub fn push_left(&mut self, x: T)
pub fn pop_right(&mut self) -> Option<T>
pub fn pop_left(&mut self) -> Option<T>
Auto Trait Implementations§
impl<T> Freeze for Deque<T>
impl<T> RefUnwindSafe for Deque<T>where
T: RefUnwindSafe,
impl<T> Send for Deque<T>where
T: Send,
impl<T> Sync for Deque<T>where
T: Sync,
impl<T> Unpin for Deque<T>where
T: Unpin,
impl<T> UnwindSafe for Deque<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