pub struct Config { /* private fields */ }
Expand description
Configuration to use for formatting output.
Implementations
sourceimpl 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 RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more