pub struct LFStack<T: 'static> { /* private fields */ }Implementations§
Source§impl<T: 'static> LFStack<T>
impl<T: 'static> LFStack<T>
pub fn new() -> Self
pub fn size(&self) -> usize
pub fn is_lock(&self) -> bool
pub fn pop(&self) -> Option<T>
pub fn try_pop(&self) -> Result<T, Option<()>>
pub fn push(&self, val: T)
pub fn try_push(&self, val: T) -> Result<(), ()>
pub fn collect_from_top(&self, handler: Arc<dyn Fn(&mut T) -> CollectResult>)
pub fn collect_from_bottom(&self, handler: Arc<dyn Fn(&mut T) -> CollectResult>)
pub fn clear(&self)
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for LFStack<T>
impl<T> RefUnwindSafe for LFStack<T>
impl<T> Send for LFStack<T>where
T: Send,
impl<T> Sync for LFStack<T>where
T: Send,
impl<T> Unpin for LFStack<T>
impl<T> UnwindSafe for LFStack<T>
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