pub trait ExtStack<'a, Ctx: Context<'a>, A: MentionableBase<'a>>: MentionableBase<'a> {
// Required methods
fn empty(factory: A::Fctr) -> Self;
fn f(factory: A::Fctr) -> Self::Fctr;
fn add(self, element: A) -> Self;
}Expand description
Extention trait with helper methods for Stacks.
Required Methods§
sourcefn empty(factory: A::Fctr) -> Self
fn empty(factory: A::Fctr) -> Self
Get an empty stack (Nullable::Null).