Skip to main content

copied

Function copied 

Source
pub fn copied(doc: &Doc, selection: Selection) -> String
Expand description

The text a selection covers, as it would be pasted.

Doc::spans answers in parts — a paragraph, a cell, a line of a fence — and a newline between them is what puts a multi-block selection back together.