pub struct StackArray {
pub data: [Stack; 256],
pub len: usize,
}
Fields§
§data: [Stack; 256]
§len: usize
Implementations§
Source§impl StackArray
impl StackArray
pub fn new() -> Self
pub fn get(&mut self, index: usize) -> Option<&mut Stack>
pub fn push(&mut self, stack: Stack)
pub fn len(&self) -> usize
pub fn clone(&self) -> Vec<Stack>
pub fn last_mut(&mut self) -> Option<&mut Stack>
pub fn last(&self) -> Option<&Stack>
pub fn pop(&mut self)
Trait Implementations§
Source§impl Clone for StackArray
impl Clone for StackArray
Source§fn clone(&self) -> StackArray
fn clone(&self) -> StackArray
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StackArray
impl Debug for StackArray
Auto Trait Implementations§
impl Freeze for StackArray
impl RefUnwindSafe for StackArray
impl Send for StackArray
impl Sync for StackArray
impl Unpin for StackArray
impl UnwindSafe for StackArray
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