MCPcopy Create free account

hub / github.com/SergioBenitez/state / functions

Functions51 in github.com/SergioBenitez/state

↓ 5 callersMethodget
Returns the element for the current thread, if it exists.
src/lib.rs:198
↓ 4 callersMethodget_or
Returns the element for the current thread, or creates it if it doesn't exist.
src/lib.rs:205
↓ 4 callersMethoditer_mut
Returns a mutable iterator over the local values of all threads in unspecified order. Since this call borrows the `ThreadLocal` mutably, this operati
src/lib.rs:296
↓ 3 callersMethoditer
Returns an iterator over the local values of all threads in unspecified order. This call can be done safely, as `T` is required to implement [`Sync`]
src/lib.rs:280
↓ 2 callersFunctionget
Get the current thread.
src/thread_id.rs:92
↓ 2 callersMethodget_inner
(&self, thread: Thread)
src/lib.rs:229
↓ 2 callersFunctionmake_create
()
src/lib.rs:537
↓ 2 callersMethodnext_bucket
(&mut self)
src/lib.rs:426
↓ 1 callersMethodalloc
(&mut self)
src/thread_id.rs:29
↓ 1 callersFunctionallocate_bucket
(size: usize)
src/lib.rs:517
↓ 1 callersMethodclear
Removes all thread-specific values from the `ThreadLocal`, effectively reseting it to its original state. Since this call borrows the `ThreadLocal` m
src/lib.rs:309
↓ 1 callersMethodfree
(&mut self, id: usize)
src/thread_id.rs:41
↓ 1 callersMethodget_or
(&self, create: F)
src/cached.rs:41
↓ 1 callersMethodget_or_try
Returns the element for the current thread, or creates it if it doesn't exist. If `create` fails, that error is returned and no element is added.
src/lib.rs:218
↓ 1 callersMethodinsert
(&self, thread: Thread, data: T)
src/lib.rs:247
↓ 1 callersMethodinto_iter
(self)
src/lib.rs:318
↓ 1 callersMethoditer_mut
(&mut self)
src/cached.rs:65
↓ 1 callersMethodnext_mut
( &mut self, thread_local: &'a mut ThreadLocal<T>, )
src/lib.rs:398
↓ 1 callersMethodsize_hint_frozen
(&self, thread_local: &ThreadLocal<T>)
src/lib.rs:438
↓ 1 callersMethodunchecked_unwrap_ok
(self)
src/unreachable.rs:44
Methodclear
(&mut self)
src/cached.rs:78
Methoddefault
()
src/lib.rs:136
Methoddefault
()
src/cached.rs:18
Functiondifferent_thread
()
src/lib.rs:560
Methoddrop
(&mut self)
src/lib.rs:123
Methoddrop
(&mut self)
src/thread_id.rs:84
Methodfmt
(&self, f: &mut fmt::Formatter)
src/lib.rs:353
Methodfmt
(&self, f: &mut fmt::Formatter)
src/cached.rs:112
Functionfoo
()
src/lib.rs:634
Methodget
(&self)
src/cached.rs:34
Methodget_or_default
Returns the element for the current thread, or creates a default one if it doesn't exist.
src/lib.rs:347
Methodget_or_default
Returns the element for the current thread, or creates a default one if it doesn't exist.
src/cached.rs:106
Methodget_or_try
(&self, create: F)
src/cached.rs:52
Methodinto_iter
(self)
src/cached.rs:87
Functionis_sync
()
src/lib.rs:633
Functioniter
()
src/lib.rs:582
Functionmain
()
benches/thread_local.rs:8
Methodnew
Creates a new empty `ThreadLocal`.
src/lib.rs:165
Methodnew
()
src/thread_id.rs:23
Methodnew
()
src/cached.rs:26
Methodnext
(&mut self, thread_local: &'a ThreadLocal<T>)
src/lib.rs:378
Methodnext
(&mut self)
src/cached.rs:129
Functionsame_thread
()
src/lib.rs:543
Methodsize_hint
(&self, thread_local: &ThreadLocal<T>)
src/lib.rs:434
Methodsize_hint
(&self)
src/cached.rs:134
Functiontest_drop
()
src/lib.rs:616
Functiontest_thread
()
src/thread_id.rs:97
Methodunchecked_unwrap
(self)
src/unreachable.rs:29
Methodunchecked_unwrap_err
(self)
src/unreachable.rs:51
Methodunchecked_unwrap_none
(self)
src/unreachable.rs:36
Methodwith_capacity
Creates a new `ThreadLocal` with an initial capacity. If less than the capacity threads access the thread local it will never reallocate. The capacity
src/lib.rs:172