Skip to main content

apply

Function apply 

Source
pub fn apply(source: &str, marker: &str, line: &str) -> Option<String>
Expand description

Insert line immediately above marker, matching the marker’s indentation.

Above rather than below so repeated generation keeps chronological order: the marker stays at the bottom of its list.