pub struct PinnedQueue<T> { /* private fields */ }
Implementations§
Source§impl<T> PinnedQueue<T>
impl<T> PinnedQueue<T>
pub const fn new() -> PinnedQueue<T>
pub fn is_empty(&self) -> bool
Sourcepub fn get(&self, index: usize) -> Option<Pin<&T>>
pub fn get(&self, index: usize) -> Option<Pin<&T>>
Provides a pinned reference to the element at the given index.
Sourcepub fn get_mut(&mut self, index: usize) -> Option<Pin<&mut T>>
pub fn get_mut(&mut self, index: usize) -> Option<Pin<&mut T>>
Provides a pinned mutable reference to the element at the given index.
Sourcepub fn last_mut(&mut self) -> Option<Pin<&mut T>>
pub fn last_mut(&mut self) -> Option<Pin<&mut T>>
Provides a pinned mutable reference to the last element.
Trait Implementations§
Source§impl<T: Default> Default for PinnedQueue<T>
impl<T: Default> Default for PinnedQueue<T>
Source§fn default() -> PinnedQueue<T>
fn default() -> PinnedQueue<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for PinnedQueue<T>
impl<T> RefUnwindSafe for PinnedQueue<T>where
T: RefUnwindSafe,
impl<T> Send for PinnedQueue<T>where
T: Send,
impl<T> Sync for PinnedQueue<T>where
T: Sync,
impl<T> Unpin for PinnedQueue<T>where
T: Unpin,
impl<T> UnwindSafe for PinnedQueue<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