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

Method new

atomic-core/src/record/builder.rs:164–176  ·  view source on GitHub ↗

Create a new empty record builder. # Example ```rust use atomic_core::record::RecordBuilder; let builder = RecordBuilder::new(); assert!(builder.is_empty()); ```

()

Source from the content-addressed store, hash-verified

162 /// assert!(builder.is_empty());
163 /// ```
164 pub fn new() -> Self {
165 Self {
166 actions: Vec::new(),
167 contents: Vec::new(),
168 updatables: HashMap::new(),
169 recorded_inodes: HashMap::new(),
170 largest_file: 0,
171 has_binary_files: false,
172 oldest_change: SystemTime::UNIX_EPOCH,
173 force_rediff: false,
174 ignore_missing: false,
175 }
176 }
177
178 /// Create a builder with pre-allocated capacity.
179 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected