kecc::write_base

Trait WriteLine

Source
pub trait WriteLine {
    // Required method
    fn write_line(&self, indent: usize, write: &mut dyn Write) -> Result<()>;
}
Expand description

A trait for writing a type to a Write stream with a new line.

Required Methods§

Source

fn write_line(&self, indent: usize, write: &mut dyn Write) -> Result<()>

Write self to write, starting at indent number of double spaces, with a newline at the end.

Implementations on Foreign Types§

Source§

impl WriteLine for (&BlockId, &Block)

Source§

fn write_line(&self, indent: usize, write: &mut dyn Write) -> Result<()>

Source§

impl WriteLine for (&String, &Declaration)

Source§

fn write_line(&self, indent: usize, write: &mut dyn Write) -> Result<()>

Source§

impl WriteLine for TranslationUnit

Source§

fn write_line(&self, indent: usize, write: &mut dyn Write) -> Result<()>

VERY BIG HINT: You should start by understanding the writeln! macro.

Source§

impl<T: WriteLine> WriteLine for Node<T>

Source§

fn write_line(&self, indent: usize, write: &mut dyn Write) -> Result<()>

Implementors§