Struct biome_formatter::SimpleFormatOptions
source · pub struct SimpleFormatOptions {
pub indent_style: IndentStyle,
pub indent_width: IndentWidth,
pub line_width: LineWidth,
pub line_ending: LineEnding,
pub attribute_position: AttributePosition,
}
Fields§
§indent_style: IndentStyle
§indent_width: IndentWidth
§line_width: LineWidth
§line_ending: LineEnding
§attribute_position: AttributePosition
Trait Implementations§
source§impl Debug for SimpleFormatOptions
impl Debug for SimpleFormatOptions
source§impl Default for SimpleFormatOptions
impl Default for SimpleFormatOptions
source§fn default() -> SimpleFormatOptions
fn default() -> SimpleFormatOptions
Returns the “default value” for a type. Read more
source§impl FormatOptions for SimpleFormatOptions
impl FormatOptions for SimpleFormatOptions
source§fn indent_style(&self) -> IndentStyle
fn indent_style(&self) -> IndentStyle
The indent style.
source§fn indent_width(&self) -> IndentWidth
fn indent_width(&self) -> IndentWidth
The indent width.
source§fn line_width(&self) -> LineWidth
fn line_width(&self) -> LineWidth
What’s the max width of a line. Defaults to 80.
source§fn line_ending(&self) -> LineEnding
fn line_ending(&self) -> LineEnding
The type of line ending.
source§fn attribute_position(&self) -> AttributePosition
fn attribute_position(&self) -> AttributePosition
The attribute position.
source§fn as_print_options(&self) -> PrinterOptions
fn as_print_options(&self) -> PrinterOptions
Derives the print options from the these format options
source§impl PartialEq for SimpleFormatOptions
impl PartialEq for SimpleFormatOptions
source§fn eq(&self, other: &SimpleFormatOptions) -> bool
fn eq(&self, other: &SimpleFormatOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SimpleFormatOptions
impl StructuralPartialEq for SimpleFormatOptions
Auto Trait Implementations§
impl Freeze for SimpleFormatOptions
impl RefUnwindSafe for SimpleFormatOptions
impl Send for SimpleFormatOptions
impl Sync for SimpleFormatOptions
impl Unpin for SimpleFormatOptions
impl UnwindSafe for SimpleFormatOptions
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.