pub struct FmtConfig {
pub use_tabs: bool,
pub indent_size: usize,
pub line_width: usize,
pub safe_mode: bool,
}Expand description
Formatter options. Defaults match the Godot convention (tabs) and keep the safety net on.
Fields§
§use_tabs: boolIndent with tabs (the Godot convention). false indents with indent_size spaces.
indent_size: usizeSpaces per indent level when use_tabs is false.
line_width: usizeThe target line width for reflow. Reserved — line-wrapping is not yet implemented.
safe_mode: boolRe-parse + significant-token-equality fallback to verbatim. Keep on unless you have a reason not to: it is the guarantee the formatter never changes meaning.
Trait Implementations§
impl Eq for FmtConfig
impl StructuralPartialEq for FmtConfig
Auto Trait Implementations§
impl Freeze for FmtConfig
impl RefUnwindSafe for FmtConfig
impl Send for FmtConfig
impl Sync for FmtConfig
impl Unpin for FmtConfig
impl UnsafeUnpin for FmtConfig
impl UnwindSafe for FmtConfig
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<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.