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

Method empty

atomic-core/src/record/workflow/retrieve.rs:133–140  ·  view source on GitHub ↗

Create an empty result (for files with no content).

()

Source from the content-addressed store, hash-verified

131impl RetrieveResult {
132 /// Create an empty result (for files with no content).
133 pub fn empty() -> Self {
134 Self {
135 content: Vec::new(),
136 vertices_processed: 0,
137 has_conflicts: false,
138 conflict_count: 0,
139 }
140 }
141
142 /// Create a result with content.
143 pub fn with_content(content: Vec<u8>, vertices: usize) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected