Skip to main content

slice

Function slice 

Source
pub fn slice(paragraph: &Element, range: Range<usize>) -> Element
Expand description

A paragraph cut down to a range of its text, as it is carried to be put back elsewhere: the paragraph’s own style and kind, the text in the range with its spans and links, and nothing that names one place in a document (an id, a bookmark, a frame, a note), which would then be there twice.