Struct Settings

Source
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

Source

pub fn empty() -> Self

Source

pub fn for_module(module: SupportedModule) -> Self

Source

pub fn start_usage_tracking(&mut self)

Source

pub fn finish_usage_tracking( &mut self, ) -> HashMap<&'static str, HashSet<UsageTracker<'_>>>

Trait Implementations§

Source§

impl Debug for Settings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.