pub trait StackInterfacewhere
Self: Sized,{
type Elt;
type W: WitnessGenerator<Fp>;
type Bool: BoolInterface;
// Required methods
fn empty() -> Self;
fn is_empty(&self, w: &mut Self::W) -> Self::Bool;
fn pop(&self, w: &mut Self::W) -> Opt<(Self::Elt, Self)>;
fn push(elt: Self::Elt, onto: Self, w: &mut Self::W) -> Self;
}
Required Associated Types§
Required Methods§
fn empty() -> Self
fn is_empty(&self, w: &mut Self::W) -> Self::Bool
fn pop(&self, w: &mut Self::W) -> Opt<(Self::Elt, Self)>
fn push(elt: Self::Elt, onto: Self, w: &mut Self::W) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.