pub struct Stack { /* private fields */ }
Implementations§
Source§impl Stack
impl Stack
pub fn to_display<'a, S: Store>(&'a self, store: &'a S) -> DisplayStack<'a, S>
pub fn push(&mut self, idx: PackedPtr)
pub fn clear(&mut self)
pub fn pop(&mut self) -> Option<PackedPtr>
pub fn peek(&self) -> Option<&PackedPtr>
pub fn len(&self) -> usize
pub fn as_slice(&self) -> &[PackedPtr]
pub fn get_last(&self, nr: usize) -> KResult<&[PackedPtr]>
pub fn truncate_last(&mut self, nr: usize)
Trait Implementations§
Source§impl Ord for Stack
impl Ord for Stack
Source§impl PartialOrd for Stack
impl PartialOrd for Stack
impl Eq for Stack
impl StructuralPartialEq for Stack
Auto Trait Implementations§
impl Freeze for Stack
impl RefUnwindSafe for Stack
impl Send for Stack
impl Sync for Stack
impl Unpin for Stack
impl UnwindSafe for Stack
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