Trait koto_runtime::KotoWrite

source ·
pub trait KotoWrite {
    // Provided methods
    fn write(&self, _bytes: &[u8]) -> Result<()> { ... }
    fn write_line(&self, _text: &str) -> Result<()> { ... }
    fn flush(&self) -> Result<()> { ... }
}
Expand description

A trait that defines the write operations of a KotoFile

Provided Methods§

source

fn write(&self, _bytes: &[u8]) -> Result<()>

Writes bytes to the file

source

fn write_line(&self, _text: &str) -> Result<()>

Writes text to the file, and appends a newline

source

fn flush(&self) -> Result<()>

Flushes any remaining buffered output

Implementors§