pub struct Settings {Show 15 fields
pub arg_override: ArgOverride,
pub return_override: ReturnOverride,
pub force_infallible: ForceInfallible,
pub func_cfg_attr: FuncCfgAttr,
pub func_companion_tweak: FuncCompanionTweak,
pub func_exclude: FuncExclude,
pub func_inject: FuncInject,
pub func_rename: FuncRename,
pub func_replace: FuncReplace,
pub func_specialize: FuncSpecialize,
pub func_unsafe: FuncUnsafe,
pub generator_module_tweaks: ModuleTweak<'static>,
pub property_override: PropertyOverride,
pub property_tweaks: PropertyTweaks,
pub class_tweak: ClassTweaks,
}
Expand description
Injectable global and module level overrides, todo: migrate the global statics to this over time
Fields§
§arg_override: ArgOverride
§return_override: ReturnOverride
§force_infallible: ForceInfallible
§func_cfg_attr: FuncCfgAttr
§func_companion_tweak: FuncCompanionTweak
§func_exclude: FuncExclude
§func_inject: FuncInject
§func_rename: FuncRename
§func_replace: FuncReplace
§func_specialize: FuncSpecialize
§func_unsafe: FuncUnsafe
§generator_module_tweaks: ModuleTweak<'static>
§property_override: PropertyOverride
§property_tweaks: PropertyTweaks
§class_tweak: ClassTweaks
Implementations§
Source§impl Settings
impl Settings
pub fn empty() -> Self
pub fn for_module(module: SupportedModule) -> Self
pub fn start_usage_tracking(&mut self)
pub fn finish_usage_tracking( &mut self, ) -> HashMap<&'static str, HashSet<UsageTracker<'_>>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Settings
impl RefUnwindSafe for Settings
impl !Send for Settings
impl !Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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