Trait method lrs::prelude::v1::Write::write_str

Writes a string to the byte-stream.

Syntax

fn write_str(&mut self, buf: &str) -> Result<usize, Errno>

Arguments

NameDescription
buf

The string to be written.

Return value

Returns the total number of bytes written.

Remarks

This is a convenience method that simply calls write.