// SPDX-License-Identifier: Apache-2.0
usecrate::Value;/// Trait for a value stack
pubtraitStack{/// push a value onto the stack
fnpush(&mutself, value: Value);/// remove the last top value from the stack
fnpop(&mutself)->Option<Value>;/// get a reference to the top value on the stack
fntop(&self)->Option<Value>;/// peek at the item at the given index
fnpeek(&self, idx:usize)->Option<Value>;/// return the number of values on the stack
fnlen(&self)->usize;/// return if the stack is empty
fnis_empty(&self)->bool;}