pub struct FormatOptions {
pub normalize_directive_names: bool,
pub normalize_chord_spelling: bool,
pub section_blank_lines: bool,
}Expand description
Options that control which normalizations format() applies.
Fields§
§normalize_directive_names: boolExpand directive name aliases to their canonical long form.
Example: {soc} → {start_of_chorus}, {t: My Song} → {title: My Song}.
Default: true.
normalize_chord_spelling: boolNormalize chord spelling: capitalize the root note.
Example: [am] → [Am], [c#m7] → [C#m7].
Default: true.
section_blank_lines: boolEnsure exactly one blank line between section blocks
({end_of_*} … next non-blank line).
Default: true.
Trait Implementations§
Source§impl Clone for FormatOptions
impl Clone for FormatOptions
Source§fn clone(&self) -> FormatOptions
fn clone(&self) -> FormatOptions
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 FormatOptions
impl Debug for FormatOptions
Auto Trait Implementations§
impl Freeze for FormatOptions
impl RefUnwindSafe for FormatOptions
impl Send for FormatOptions
impl Sync for FormatOptions
impl Unpin for FormatOptions
impl UnsafeUnpin for FormatOptions
impl UnwindSafe for FormatOptions
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