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§
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
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.