Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
Development · Evolving reference

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.

Sn is under heavy development. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. Read the status →

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: Writer

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

Documentation snapshot: October 24, 2026 About versions ↗
Searching Development · language & standard library