Trait biome_formatter::FormatOptions
source · pub trait FormatOptions {
// Required methods
fn indent_style(&self) -> IndentStyle;
fn indent_width(&self) -> IndentWidth;
fn line_width(&self) -> LineWidth;
fn line_ending(&self) -> LineEnding;
fn attribute_position(&self) -> AttributePosition;
fn as_print_options(&self) -> PrinterOptions;
}
Expand description
Options customizing how the source code should be formatted.
Required Methods§
sourcefn indent_style(&self) -> IndentStyle
fn indent_style(&self) -> IndentStyle
The indent style.
sourcefn indent_width(&self) -> IndentWidth
fn indent_width(&self) -> IndentWidth
The indent width.
sourcefn line_width(&self) -> LineWidth
fn line_width(&self) -> LineWidth
What’s the max width of a line. Defaults to 80.
sourcefn line_ending(&self) -> LineEnding
fn line_ending(&self) -> LineEnding
The type of line ending.
sourcefn attribute_position(&self) -> AttributePosition
fn attribute_position(&self) -> AttributePosition
The attribute position.
sourcefn as_print_options(&self) -> PrinterOptions
fn as_print_options(&self) -> PrinterOptions
Derives the print options from the these format options