MCPcopy Create free account

hub / github.com/Nercury/di-rs / functions

Functions55 in github.com/Nercury/di-rs

↓ 17 callersMethodlock
(&'a mut self)
src/scope.rs:38
↓ 12 callersMethodcreate
Create dependencies for specified `obj` and return a wrapper `Scope` object. The wrapper `Scope` keeps ownership of all children together with parent
src/deps.rs:47
↓ 12 callersMethodinto
(self)
src/collection.rs:57
↓ 11 callersMethodpush
(&mut self, item: T)
src/collection.rs:23
↓ 8 callersMethodattach
Single dependency on a parent.
src/deps.rs:73
↓ 5 callersMethodincept_1
(&mut self, parent: Arc<Mutex<T1>>)
src/inceptor.rs:66
↓ 3 callersMethoddestroy_1
(&mut self, id: usize)
src/inceptor.rs:94
↓ 3 callersMethoddestroy_2
(&mut self, id: usize)
src/inceptor.rs:104
↓ 3 callersMethodincept_2
(&mut self, parent: Arc<Mutex<T2>>)
src/inceptor.rs:80
↓ 3 callersMethoditer
(&'a self)
src/collection.rs:27
↓ 2 callersMethodbridge
Single dependency on multiple parents.
src/deps.rs:86
↓ 2 callersMethodcreate_deps_for_any_parent
(&self, type_id: TypeId, mut parent_
src/deps.rs:158
↓ 2 callersFunctioninsert_into_vec
(data: &mut Vec<Option<Arc<Mutex<T>>>>, value: Arc<Mutex<T>>, used
src/inceptor.rs:115
↓ 2 callersMethodinvoke
(&mut self, i1: usize, i2: usize)
src/inceptor.rs:48
↓ 2 callersFunctiontruncate_to_used_elements_if_removed_id_is_last
(data: &mut Vec<Option<Arc<Mutex<T>>>>, removed_id: usiz
src/inceptor.rs:137
↓ 1 callersMethoddowncast
(self)
src/constructed.rs:67
↓ 1 callersMethodexplode
(self)
src/scope.rs:21
↓ 1 callersFunctioninto_action_with_deps
(action: F)
src/deps.rs:245
↓ 1 callersFunctioninto_isolated_constructor_with_child_deps
(constructor: F)
src/deps.rs:297
↓ 1 callersFunctioninto_isolated_constructor_with_ignored_child_deps
(constructor: F)
src/deps.rs:314
↓ 1 callersFunctioninto_isolated_constructor_without_child_deps
(constructor: F)
src/deps.rs:330
↓ 1 callersMethodinto_iter
(self)
src/collection.rs:42
↓ 1 callersMethodresize
(&self, w: i32, h: i32)
examples/bridge.rs:19
↓ 1 callersFunctionto_shared
(not_shared: Box<Any>)
src/deps.rs:26
↓ 1 callersMethodwhen_ready
(&mut self, action: F)
src/deps.rs:58
Methodas_ref
(&self)
src/collection.rs:33
Functioncan_create_bridge_dependency
()
src/deps.rs:447
Methodcollect
Collect all the items registered as `collectable` into a `Collection` of that type.
src/deps.rs:54
Methodcollectable
(&mut self, constructor: F)
src/deps.rs:147
Functioncount_not_none
(data: &mut Vec<Option<Arc<Mutex<T>>>>)
src/inceptor.rs:190
Functioncreates_dependency
()
src/deps.rs:361
Functioncreates_dependency_of_dependency
()
src/deps.rs:384
Functioncreates_mutable_dependency
()
src/deps.rs:409
Methodderef
(&self)
src/constructed.rs:43
Methodderef_mut
(&mut self)
src/constructed.rs:52
Methoddrop
(&mut self)
src/inceptor.rs:175
Methodfmt
(&self, f: &mut fmt::Formatter)
src/collection.rs:13
Methodfrom_any_instance
(obj: AnyInstance, childs: Vec<Box<Any>>)
src/scope.rs:14
Methodget_instance
(&self)
src/scope.rs:42
Functionic_with_val
()
src/inceptor.rs:194
Functioninto_shared_constructor
( inceptor: Arc<Mutex<Inceptor<P1, P2>>>, incept_fun: Box<Fn(&Arc<Mutex<Inceptor<P1, P2>>>, &m
src/deps.rs:269
Methodlock
(&'a mut self)
src/constructed.rs:21
Functionmain
()
examples/bridge.rs:34
Methodnew
(constructor: F)
src/inceptor.rs:17
Methodnew
()
src/collection.rs:19
Methodnew
()
src/deps.rs:34
Methodnew
()
examples/bridge.rs:15
Methodnew_with_ignored_return_val
(constructor: F)
src/inceptor.rs:29
Methodnew_with_return_val
(constructor: F)
src/inceptor.rs:39
Methodregister_isolated_constructor
Register child constructor that will be invoked when the parent `P` type is created.
src/deps.rs:213
Methodregister_shared_constructor
Register child constructor that will be invoked when the parent `P` type is created.
src/deps.rs:228
Functionshould_create_and_destroy_instances_for_all_existing_items
()
src/inceptor.rs:227
Functionshould_register_and_destroy_first_arg
()
src/inceptor.rs:199
Functionshould_register_and_destroy_second_arg
()
src/inceptor.rs:213
Functionshould_work_accross_threads
()
src/deps.rs:424