Skip to main content

Module source

Module source 

Source
Expand description

A source file as it’s kept and as it’s read: on disk binary Yog Data (what the editor saves), to people its text — formatted as Yog’s editors write it, so a line in an error is the line the editor shows. A file still in text is read as it is.

Functions§

binary
Text as a source file keeps it: binary, its comments kept as notes (crate::text::with_comments).
is_binary
Whether bytes are binary Yog Data.
text
A source file’s text: its binary form written out, or its text as it is.