pub struct ModuleBuilder {
pub context: RefMut<BuilderContext>,
pub module: RefMut<Module>,
pub providers: RefMut<HashMap<InstanceToken, Ref<ProviderBuilder>>>,
}Fields§
§context: RefMut<BuilderContext>§module: RefMut<Module>§providers: RefMut<HashMap<InstanceToken, Ref<ProviderBuilder>>>Implementations§
Source§impl ModuleBuilder
impl ModuleBuilder
pub fn new<T>(context: RefMut<BuilderContext>) -> ModuleBuilder
pub fn should_be_global(&self) -> &Self
pub fn set_distance(&self, distance: ModuleDistance) -> &Self
pub fn register_provider<T: Factory + CastFrom>( &self, token: InstanceToken, ) -> Ref<ProviderBuilder>
pub fn get_context(&self) -> RefMut<BuilderContext>
pub fn is_module_exists<T>(&self) -> bool
Auto Trait Implementations§
impl Freeze for ModuleBuilder
impl RefUnwindSafe for ModuleBuilder
impl Send for ModuleBuilder
impl Sync for ModuleBuilder
impl Unpin for ModuleBuilder
impl UnwindSafe for ModuleBuilder
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