pub struct Options {
pub MaxSize: usize,
pub InlineComments: bool,
pub DryRun: bool,
pub Verbose: bool,
pub Reformat: bool,
}Expand description
Tunable knobs forwarded from the CLI or callers.
Fields§
§MaxSize: usizeMaximum AST node count for an inlinable initialiser. Initialisers larger than this are left untouched.
InlineComments: boolWhen true, bindings that carry leading doc-comments or #[…]
attributes are still eligible for inlining.
Default false - commented bindings are kept as-is.
DryRun: boolWhen true, show what would change without writing any files.
Verbose: boolWhen true, emit per-binding log lines.
Reformat: boolWhen true, reformat the entire file with prettyplease after
inlining (the previous default behaviour).
Default false - only the inlined binding sites are rewritten;
all comments, blank lines, section banners, and the original
indentation style are preserved verbatim.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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