pub struct FormatterConfig {
pub indent_style: IndentStyle,
pub indent_width: usize,
pub line_width: usize,
pub line_ending: LineEnding,
pub brace_style: BraceStyle,
pub trailing_comma: bool,
pub space_around_operators: bool,
pub max_empty_lines: usize,
}
Expand description
Formatterの設定
Fields§
§indent_style: IndentStyle
インデントに使用する文字
indent_width: usize
インデント幅
line_width: usize
行の最大長
line_ending: LineEnding
改行スタイル
brace_style: BraceStyle
波括弧のスタイル
trailing_comma: bool
コンマの後ろにスペースを入れる
space_around_operators: bool
演算子の周りにスペースを入れる
max_empty_lines: usize
空行の最大数
Trait Implementations§
Source§impl Clone for FormatterConfig
impl Clone for FormatterConfig
Source§fn clone(&self) -> FormatterConfig
fn clone(&self) -> FormatterConfig
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 FormatterConfig
impl Debug for FormatterConfig
Source§impl Default for FormatterConfig
impl Default for FormatterConfig
Source§impl<'de> Deserialize<'de> for FormatterConfig
impl<'de> Deserialize<'de> for FormatterConfig
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 FormatterConfig
impl RefUnwindSafe for FormatterConfig
impl Send for FormatterConfig
impl Sync for FormatterConfig
impl Unpin for FormatterConfig
impl UnwindSafe for FormatterConfig
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