use miden_core::program::MIN_STACK_DEPTH;
#[repr(C)]
pub struct StackCols<T> {
pub(crate) top: [T; MIN_STACK_DEPTH],
pub b0: T,
pub b1: T,
pub h0: T,
}
impl<T: Copy> StackCols<T> {
pub fn get(&self, idx: usize) -> T {
self.top[idx]
}
}
impl<T> StackCols<T> {
pub fn elements(&self, range: impl core::slice::SliceIndex<[T], Output = [T]>) -> &[T] {
&self.top[range]
}
}