pub struct Config {
pub max_edits: usize,
pub disabled_rules: HashSet<String>,
pub remove_dead_methods: bool,
}Fields§
§max_edits: usize最大编辑次数保险丝(成本单调下降本身已保证终止)。
disabled_rules: HashSet<String>关闭指定名字的规则。
remove_dead_methods: bool删除全单元零引用的 private 方法(解密器/内联后的死 helper)。 opt-in:反射(getDeclaredMethod)无法静态排除;名字匹配不分重载, 只会更保守地保留。默认 false。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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