pub struct Config {
pub indent: Arc<str>,
pub skip: bool,
pub min_empty_lines: usize,
pub max_empty_lines: usize,
pub max_use_tree_len: usize,
pub array_expr_cols: Option<usize>,
pub max_array_expr_len: usize,
pub max_chain_len: usize,
pub max_inline_tuple_struct_len: usize,
}Expand description
Formatter configuration
Fields§
§indent: Arc<str>§skip: bool§min_empty_lines: usize§max_empty_lines: usize§max_use_tree_len: usize§array_expr_cols: Option<usize>§max_array_expr_len: usize§max_chain_len: usize§max_inline_tuple_struct_len: usizeTrait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin 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