[−][src]Struct taplo::formatter::Options
All the formatting options.
Fields
align_entries: boolAlign entries vertically.
Entries that have table headers, comments, or blank lines between them are not aligned.
array_trailing_comma: boolPut trailing commas for multiline arrays
array_auto_expand: boolAutomatically expand arrays to multi lines if they're too long.
array_auto_collapse: boolAutomatically collapse arrays if they fit in one line.
The array won't be collapsed if it contains a comment.
compact_arrays: boolOmit whitespace padding inside single-line arrays.
compact_inline_tables: boolOmit whitespace padding inside inline tables.
column_width: usizeTarget maximum column width after which arrays are expanded into new lines.
This is best-effort, and currently doesn't take whitespace into account.
indent_tables: boolIndent subtables if they come in order.
indent_string: StringIndentation to use, should be tabs or spaces but technically could be anything.
trailing_newline: boolAdd trailing newline to the source.
reorder_keys: boolAlphabetically reorder keys that are not separated by blank lines.
allowed_blank_lines: usizeThe maximum amount of consecutive blank lines allowed.
crlf: boolUse CRLF line endings
Implementations
impl Options[src]
pub fn update_from_str<S: AsRef<str>, I: Iterator<Item = (S, S)>>(
&mut self,
values: I
) -> Result<(), OptionParseError>[src]
&mut self,
values: I
) -> Result<(), OptionParseError>
Trait Implementations
impl Clone for Options[src]
impl Debug for Options[src]
impl Default for Options[src]
impl Eq for Options[src]
impl PartialEq<Options> for Options[src]
impl StructuralEq for Options[src]
impl StructuralPartialEq for Options[src]
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,