pub struct FormatConfigBuilder { /* private fields */ }Expand description
Builder for FormatConfig
Implementations§
Source§impl FormatConfigBuilder
impl FormatConfigBuilder
pub fn new() -> Self
pub fn less_parentheses(self, value: bool) -> Self
pub fn max_line_length(self, value: usize) -> Self
pub fn indent_long_lines(self, value: bool) -> Self
pub fn max_inline_refs(self, value: Option<usize>) -> Self
pub fn group_consecutive(self, value: bool) -> Self
pub fn indent_string(self, value: String) -> Self
pub fn prefer_inline(self, value: bool) -> Self
pub fn build(self) -> FormatConfig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormatConfigBuilder
impl RefUnwindSafe for FormatConfigBuilder
impl Send for FormatConfigBuilder
impl Sync for FormatConfigBuilder
impl Unpin for FormatConfigBuilder
impl UnwindSafe for FormatConfigBuilder
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