pub struct SimpleFormatOptions {
pub indent_style: IndentStyle,
pub indent_width: IndentWidth,
pub line_width: LineWidth,
}Fields§
§indent_style: IndentStyle§indent_width: IndentWidth§line_width: LineWidthTrait Implementations§
Source§impl Clone for SimpleFormatOptions
impl Clone for SimpleFormatOptions
Source§fn clone(&self) -> SimpleFormatOptions
fn clone(&self) -> SimpleFormatOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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
impl Eq for SimpleFormatOptions
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 visual width of an indent
Source§fn line_width(&self) -> LineWidth
fn line_width(&self) -> LineWidth
What’s the max width of a line. Defaults to 80.
Source§fn as_print_options(&self) -> PrinterOptions
fn as_print_options(&self) -> PrinterOptions
Derives the print options from 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
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more