Trait HCValueOutputter

Source
pub trait HCValueOutputter {
    type Output;

    // Required methods
    fn new() -> Self;
    fn push_char(&mut self, c: char);
    fn append(&mut self, s: &str);
    fn begin_new_var(&mut self);
    fn insert(&mut self, index: usize, c: char);
    fn result(self) -> Self::Output;
    fn ends_with(&self, s: &str) -> bool;
    fn len(&self) -> usize;
    fn truncate(&mut self, len: usize);
    fn as_str(&self) -> &str;
}

Required Associated Types§

Required Methods§

Source

fn new() -> Self

Source

fn push_char(&mut self, c: char)

Source

fn append(&mut self, s: &str)

Source

fn begin_new_var(&mut self)

Source

fn insert(&mut self, index: usize, c: char)

Source

fn result(self) -> Self::Output

Source

fn ends_with(&self, s: &str) -> bool

Source

fn len(&self) -> usize

Source

fn truncate(&mut self, len: usize)

Source

fn as_str(&self) -> &str

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.

Implementors§