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

Method with_capacity

atomic-core/src/record/workflow/collect.rs:239–245  ·  view source on GitHub ↗

Create a result with pre-allocated capacity.

(capacity: usize)

Source from the content-addressed store, hash-verified

237
238 /// Create a result with pre-allocated capacity.
239 pub fn with_capacity(capacity: usize) -> Self {
240 Self {
241 files: Vec::with_capacity(capacity),
242 errors: Vec::new(),
243 skipped: 0,
244 }
245 }
246
247 /// Add a successfully collected file.
248 pub fn add(&mut self, file: T) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected