Skip to main content

StringReader

Type Alias StringReader 

Source
pub type StringReader = Rc<dyn Fn(&str, &str, &str) -> Option<Result<TextModel, String>>>;
Expand description

A host’s reading of a lone string (spec: Grafting, graft(READING:NOTATION)): the reading’s name (text, corpus, lit, koine), the notation the string is to be read as, and the string in; its text-level model out, Some(Err) the reading’s own refusal, None where the host has no such reading.

Aliased Type§

pub struct StringReader { /* private fields */ }