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§
- Read
Error - 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
bytesare the binary form. - text
- A source file’s text: its binary form written out, or its text as it is.