pub trait StackPrimitive {
    // Required method
    fn push_to(&self, stack: &mut Stack);

    // Provided method
    fn extend_to<'b, I>(iter: I, stack: &mut Stack)
       where I: IntoIterator<Item = &'b Self>,
             Self: 'b { ... }
}

Required Methods§

source

fn push_to(&self, stack: &mut Stack)

Provided Methods§

source

fn extend_to<'b, I>(iter: I, stack: &mut Stack)
where I: IntoIterator<Item = &'b Self>, Self: 'b,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, T: StackPrimitive + 'a> StackPrimitive for &'a T

source§

fn push_to(&self, stack: &mut Stack)

source§

fn extend_to<'b, I>(iter: I, stack: &mut Stack)
where I: IntoIterator<Item = &'b Self>, Self: 'b,

Implementors§