Trait minparser::AppenderExt

source ·
pub trait AppenderExt<T>: Appender<T> {
    // Required methods
    fn is_empty(&self) -> bool;
    fn clear(&mut self);
    fn drain(&mut self, a: &mut Self);
}
Expand description

A sequential container with additional functionalities.

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

Required Methods§

source

fn is_empty(&self) -> bool

Tests if the container is empty

source

fn clear(&mut self)

Clears the container

source

fn drain(&mut self, a: &mut Self)

Pushes all the elements of a into self and then clears a.

Object Safety§

This trait is not object safe.

Implementors§