pub struct Config { /* private fields */ }
Expand description
Configuration to use for formatting output.
Implementations§
source§impl Config
impl Config
sourcepub fn from_lang<L>() -> Selfwhere
L: Lang,
pub fn from_lang<L>() -> Selfwhere L: Lang,
Construct a new default formatter configuration for the specified language.
sourcepub fn with_indentation(self, indentation: Indentation) -> Self
pub fn with_indentation(self, indentation: Indentation) -> Self
Modify indentation to use.
sourcepub fn with_newline(self, newline: &'static str) -> Self
pub fn with_newline(self, newline: &'static str) -> Self
Set what to use as newline.