Skip to main content

with_writing_style

Function with_writing_style 

Source
pub fn with_writing_style(text: &str, selection: &WritingStyle) -> String
Expand description

Record a writing-style selection in a declaration, keeping every comment.

The writing_style: key and its indented children are replaced as a block; a declaration written before the key existed gets it appended.