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 the binary form (what an editor may save), to people its text — formatted as 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.

Enums§

ReadError
Why a source file’s bytes aren’t a source.

Functions§

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