WriteText
Submits all UTF-8 bytes without implicit downstream flushing. Text is already valid UTF-8; byte transfer preserves exact encoding and reports byte-prefix counts. No intermediate byte storage or locale conversion is added.
Module std.io
import std.io;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
WriteText
pub fn WriteText<S>(Source: mut S&, Text: str) -> Result<void, IoError> where S: WriterSubmits all UTF-8 bytes without implicit downstream flushing. Text is already valid UTF-8; byte transfer preserves exact encoding and reports byte-prefix counts. No intermediate byte storage or locale conversion is added. S: Structural Writer source type. Source: Borrowed mutable stream, retained through completion. Text: Borrowed valid UTF-8 backing retained through completion. Return: complete submission or portable failure with transferred-byte prefix. Warning: May block in the provider; success does not promise flush/durability.