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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more