Trait minparser::Appender

source ·
pub trait Appender<T> {
    // Required methods
    fn new_empty() -> Self;
    fn push(&mut self, i: T);
}
Expand description

A sequential container that can accept new objects.

This trait is used by DefLine::grab_cf and similar methods in DefLine.

Required Methods§

source

fn new_empty() -> Self

Creates a new empty container.

source

fn push(&mut self, i: T)

Push a new object in the container.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, const N: u32> Appender<T> for NumAppender<T, N>
where T: AddAssign<T> + MulAssign<u32>,