Skip to main content

read

Function read 

Source
pub fn read(bytes: &[u8]) -> Result<Corpus, Vec<Violation>>
Expand description

Reads a whole corpus (record.md), filling in every member a writer may omit.

ยงErrors

Returns every rule violation found, each with its line. The reader goes on past a bad line, so one run reports all of them.