pub struct FormatConfig {
pub max_width: usize,
pub root_splits: bool,
pub split_brace_threshold: Option<usize>,
pub split_attributes: bool,
pub split_where: bool,
pub comment_width: Option<usize>,
pub comment_errors_fatal: bool,
pub keep_max_blank_lines: usize,
pub indent_spaces: usize,
pub indent_unit: IndentUnit,
pub explicit_markdown_comments: bool,
}Fields§
§max_width: usize§root_splits: bool§split_brace_threshold: Option<usize>§split_attributes: bool§split_where: bool§comment_width: Option<usize>§comment_errors_fatal: bool§keep_max_blank_lines: usize§indent_spaces: usize§indent_unit: IndentUnitIndent with spaces or tabs.
explicit_markdown_comments: boolTrait Implementations§
Source§impl Clone for FormatConfig
impl Clone for FormatConfig
Source§fn clone(&self) -> FormatConfig
fn clone(&self) -> FormatConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormatConfig
impl Debug for FormatConfig
Source§impl Default for FormatConfig
impl Default for FormatConfig
Source§impl<'de> Deserialize<'de> for FormatConfigwhere
FormatConfig: Default,
impl<'de> Deserialize<'de> for FormatConfigwhere
FormatConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for FormatConfig
impl Serialize for FormatConfig
impl Copy for FormatConfig
Auto Trait Implementations§
impl Freeze for FormatConfig
impl RefUnwindSafe for FormatConfig
impl Send for FormatConfig
impl Sync for FormatConfig
impl Unpin for FormatConfig
impl UnwindSafe for FormatConfig
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