pub struct FormatStyle {
pub line_ending: LineEnding,
pub continuation_indent: String,
pub space_after_colon: bool,
}Expand description
Formatting choices used by canonical builders.
Fields§
§line_ending: LineEndingPhysical line ending.
continuation_indent: StringIndentation for continuation lines.
space_after_colon: boolWhether non-empty first lines receive one space after the colon.
Trait Implementations§
Source§impl Clone for FormatStyle
impl Clone for FormatStyle
Source§fn clone(&self) -> FormatStyle
fn clone(&self) -> FormatStyle
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 FormatStyle
impl Debug for FormatStyle
Source§impl Default for FormatStyle
impl Default for FormatStyle
Source§fn default() -> FormatStyle
fn default() -> FormatStyle
Returns the “default value” for a type. Read more
impl Eq for FormatStyle
Source§impl Hash for FormatStyle
impl Hash for FormatStyle
Source§impl PartialEq for FormatStyle
impl PartialEq for FormatStyle
impl StructuralPartialEq for FormatStyle
Auto Trait Implementations§
impl Freeze for FormatStyle
impl RefUnwindSafe for FormatStyle
impl Send for FormatStyle
impl Sync for FormatStyle
impl Unpin for FormatStyle
impl UnsafeUnpin for FormatStyle
impl UnwindSafe for FormatStyle
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