pub struct Stack<E: Copy> { /* private fields */ }Implementations§
Source§impl<E: Copy> Stack<E>
impl<E: Copy> Stack<E>
pub const DEFAULT_SEGMENT_SIZE: usize
pub fn is_empty(&self) -> bool
pub fn is_full(&self) -> bool
pub fn size(&self) -> usize
pub const fn segment_size(&self) -> usize
pub const fn max_size(&self) -> usize
pub const fn max_cache_size(&self) -> usize
pub const fn cache_size(&self) -> usize
pub fn new(segment_size: usize, max_cache_size: usize, max_size: usize) -> Self
pub fn push(&mut self, item: E)
pub fn pop(&mut self) -> Option<E>
pub fn clear(&mut self, reset_cache: bool)
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Stack<E>
impl<E> RefUnwindSafe for Stack<E>where
E: RefUnwindSafe,
impl<E> !Send for Stack<E>
impl<E> !Sync for Stack<E>
impl<E> Unpin for Stack<E>
impl<E> UnwindSafe for Stack<E>where
E: RefUnwindSafe,
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