MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / with_capacity

Method with_capacity

atomic-core/src/crdt/apply/order.rs:307–312  ·  view source on GitHub ↗
(capacity: usize)

Source from the content-addressed store, hash-verified

305 /// Creates a sequence with pre-allocated capacity.
306 #[inline]
307 pub fn with_capacity(capacity: usize) -> Self {
308 Self {
309 elements: Vec::with_capacity(capacity),
310 after_refs: Vec::with_capacity(capacity),
311 }
312 }
313
314 /// Returns the number of elements.
315 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected