Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/carllerche/pool
/ functions
Functions
23 in github.com/carllerche/pool
⨍
Functions
23
◇
Types & classes
7
↓ 6 callers
Method
checkout
Checkout a value from the pool. Returns `None` if the pool is currently at capacity. The value returned from the pool has not been reset and contains
src/lib.rs:98
↓ 5 callers
Method
entry_mut
(&mut self)
src/lib.rs:140
↓ 4 callers
Method
entry
(&self)
src/lib.rs:136
↓ 1 callers
Function
alloc
Allocate memory
src/lib.rs:342
↓ 1 callers
Method
checkin
(&self, ptr: *mut Entry<T>)
src/lib.rs:265
↓ 1 callers
Method
extra
Read access to the raw bytes
src/lib.rs:127
↓ 1 callers
Method
inner
(&self)
src/lib.rs:144
↓ 1 callers
Method
inner_mut
(&self)
src/lib.rs:111
↓ 1 callers
Method
reset
(&mut self)
src/reset.rs:8
Method
deref
(&self)
src/lib.rs:152
Method
deref
(&self)
src/reset.rs:18
Method
deref_mut
(&mut self)
src/lib.rs:158
Method
deref_mut
(&mut self)
src/reset.rs:24
Method
drop
(&mut self)
test/test.rs:68
Method
drop
(&mut self)
src/lib.rs:164
Method
extra_mut
Write access to the extra bytes
src/lib.rs:132
Function
test_checkout_checkin
()
test/test.rs:6
Function
test_depleting_pool
()
test/test.rs:36
Function
test_multiple_checkouts
()
test/test.rs:21
Function
test_resetting_pool
()
test/test.rs:51
Function
test_safe_when_init_panics
()
test/test.rs:80
Function
test_works_with_drop_types
()
test/test.rs:74
Method
with_capacity
Creates a new pool that can contain up to `capacity` entries as well as `extra` extra bytes. Initializes each entry with the given function.
src/lib.rs:70