MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / new

Function new

crates/data-structures/src/object_pool.rs:240–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238 }
239
240 fn new() -> P {
241 P::new(100)
242 }
243
244 fn assert_metrics(pool: &P, dropped: usize, new: usize, reused: usize, returned: usize) {
245 assert_eq!(pool.dropped_count(), dropped);

Callers 15

fromMethod · 0.70
defaultMethod · 0.70
newMethod · 0.70
insert_returns_old_innerFunction · 0.70
insert_get_remove_innerFunction · 0.70
newMethod · 0.70
takeMethod · 0.70
takeFunction · 0.70
pool_returns_same_objFunction · 0.70
pool_drops_past_max_sizeFunction · 0.70

Calls

no outgoing calls