Struct unsized_stack::UnsizedStack
source · pub struct UnsizedStack<T: ?Sized> { /* private fields */ }
Implementations§
source§impl<T: ?Sized> UnsizedStack<T>
impl<T: ?Sized> UnsizedStack<T>
pub const fn new() -> Self
pub const fn bytes_occupied(&self) -> usize
pub const fn buf_layout(&self) -> Layout
pub const fn buf_ptr(&self) -> NonNull<u8>
pub fn get(&self, index: usize) -> Option<&T>
pub fn get_mut(&mut self, index: usize) -> Option<&mut T>
pub fn push<I>(&mut self, item: I, coercion: fn(_: &I) -> &T)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn pop(&mut self) -> Option<()>
pub fn iter(&self) -> Iter<'_, T> ⓘ
pub fn iter_mut(&mut self) -> IterMut<'_, T> ⓘ
pub fn clear(&mut self)
Trait Implementations§
source§impl<T: ?Sized> Default for UnsizedStack<T>
impl<T: ?Sized> Default for UnsizedStack<T>
source§impl<'a, T: ?Sized> IntoIterator for &'a UnsizedStack<T>
impl<'a, T: ?Sized> IntoIterator for &'a UnsizedStack<T>
Auto Trait Implementations§
impl<T: ?Sized> RefUnwindSafe for UnsizedStack<T>where T: RefUnwindSafe,
impl<T> !Send for UnsizedStack<T>
impl<T> !Sync for UnsizedStack<T>
impl<T: ?Sized> Unpin for UnsizedStack<T>where T: Unpin,
impl<T: ?Sized> UnwindSafe for UnsizedStack<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