Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
0.2.0 Preview 1 · Frozen documentation

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. Reference extracted from this release’s bundled standard library. Public API examples are not an exhaustive compatibility test. Read the matching release guide for tested workflows and limitations. 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