Skip to main content

from_read_rich

Function from_read_rich 

Source
pub fn from_read_rich<R>(
    input: R,
    width: usize,
) -> Vec<TaggedLine<Vec<RichAnnotation>>>
where R: Read,
Expand description

Reads HTML from input, and returns text wrapped to width columns. The text is returned as a Vec<TaggedLine<_>>; the annotations are vectors of RichAnnotation. The “outer” annotation comes first in the Vec.