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

Method with_capacity

atomic-core/src/crdt/apply/conflict.rs:527–531  ·  view source on GitHub ↗
(capacity: usize)

Source from the content-addressed store, hash-verified

525 /// Creates a tracker with pre-allocated capacity.
526 #[inline]
527 pub fn with_capacity(capacity: usize) -> Self {
528 Self {
529 conflicts: Vec::with_capacity(capacity),
530 }
531 }
532
533 /// Adds a conflict to the tracker.
534 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected