Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nercury/di-rs
/ functions
Functions
55 in github.com/Nercury/di-rs
⨍
Functions
55
◇
Types & classes
16
↓ 17 callers
Method
lock
(&'a mut self)
src/scope.rs:38
↓ 12 callers
Method
create
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 callers
Method
into
(self)
src/collection.rs:57
↓ 11 callers
Method
push
(&mut self, item: T)
src/collection.rs:23
↓ 8 callers
Method
attach
Single dependency on a parent.
src/deps.rs:73
↓ 5 callers
Method
incept_1
(&mut self, parent: Arc<Mutex<T1>>)
src/inceptor.rs:66
↓ 3 callers
Method
destroy_1
(&mut self, id: usize)
src/inceptor.rs:94
↓ 3 callers
Method
destroy_2
(&mut self, id: usize)
src/inceptor.rs:104
↓ 3 callers
Method
incept_2
(&mut self, parent: Arc<Mutex<T2>>)
src/inceptor.rs:80
↓ 3 callers
Method
iter
(&'a self)
src/collection.rs:27
↓ 2 callers
Method
bridge
Single dependency on multiple parents.
src/deps.rs:86
↓ 2 callers
Method
create_deps_for_any_parent
(&self, type_id: TypeId, mut parent_
src/deps.rs:158
↓ 2 callers
Function
insert_into_vec
(data: &mut Vec<Option<Arc<Mutex<T>>>>, value: Arc<Mutex<T>>, used
src/inceptor.rs:115
↓ 2 callers
Method
invoke
(&mut self, i1: usize, i2: usize)
src/inceptor.rs:48
↓ 2 callers
Function
truncate_to_used_elements_if_removed_id_is_last
(data: &mut Vec<Option<Arc<Mutex<T>>>>, removed_id: usiz
src/inceptor.rs:137
↓ 1 callers
Method
downcast
(self)
src/constructed.rs:67
↓ 1 callers
Method
explode
(self)
src/scope.rs:21
↓ 1 callers
Function
into_action_with_deps
(action: F)
src/deps.rs:245
↓ 1 callers
Function
into_isolated_constructor_with_child_deps
(constructor: F)
src/deps.rs:297
↓ 1 callers
Function
into_isolated_constructor_with_ignored_child_deps
(constructor: F)
src/deps.rs:314
↓ 1 callers
Function
into_isolated_constructor_without_child_deps
(constructor: F)
src/deps.rs:330
↓ 1 callers
Method
into_iter
(self)
src/collection.rs:42
↓ 1 callers
Method
resize
(&self, w: i32, h: i32)
examples/bridge.rs:19
↓ 1 callers
Function
to_shared
(not_shared: Box<Any>)
src/deps.rs:26
↓ 1 callers
Method
when_ready
(&mut self, action: F)
src/deps.rs:58
Method
as_ref
(&self)
src/collection.rs:33
Function
can_create_bridge_dependency
()
src/deps.rs:447
Method
collect
Collect all the items registered as `collectable` into a `Collection` of that type.
src/deps.rs:54
Method
collectable
(&mut self, constructor: F)
src/deps.rs:147
Function
count_not_none
(data: &mut Vec<Option<Arc<Mutex<T>>>>)
src/inceptor.rs:190
Function
creates_dependency
()
src/deps.rs:361
Function
creates_dependency_of_dependency
()
src/deps.rs:384
Function
creates_mutable_dependency
()
src/deps.rs:409
Method
deref
(&self)
src/constructed.rs:43
Method
deref_mut
(&mut self)
src/constructed.rs:52
Method
drop
(&mut self)
src/inceptor.rs:175
Method
fmt
(&self, f: &mut fmt::Formatter)
src/collection.rs:13
Method
from_any_instance
(obj: AnyInstance, childs: Vec<Box<Any>>)
src/scope.rs:14
Method
get_instance
(&self)
src/scope.rs:42
Function
ic_with_val
()
src/inceptor.rs:194
Function
into_shared_constructor
( inceptor: Arc<Mutex<Inceptor<P1, P2>>>, incept_fun: Box<Fn(&Arc<Mutex<Inceptor<P1, P2>>>, &m
src/deps.rs:269
Method
lock
(&'a mut self)
src/constructed.rs:21
Function
main
()
examples/bridge.rs:34
Method
new
(constructor: F)
src/inceptor.rs:17
Method
new
()
src/collection.rs:19
Method
new
()
src/deps.rs:34
Method
new
()
examples/bridge.rs:15
Method
new_with_ignored_return_val
(constructor: F)
src/inceptor.rs:29
Method
new_with_return_val
(constructor: F)
src/inceptor.rs:39
Method
register_isolated_constructor
Register child constructor that will be invoked when the parent `P` type is created.
src/deps.rs:213
Method
register_shared_constructor
Register child constructor that will be invoked when the parent `P` type is created.
src/deps.rs:228
Function
should_create_and_destroy_instances_for_all_existing_items
()
src/inceptor.rs:227
Function
should_register_and_destroy_first_arg
()
src/inceptor.rs:199
Function
should_register_and_destroy_second_arg
()
src/inceptor.rs:213
Function
should_work_accross_threads
()
src/deps.rs:424