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

Method is_empty

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

Check if no changes have been recorded. # Returns `true` if no hunks have been added. # Example ```rust use atomic_core::record::RecordBuilder; let builder = RecordBuilder::new(); assert!(builder.is_empty()); ```

(&self)

Source from the content-addressed store, hash-verified

222 /// assert!(builder.is_empty());
223 /// ```
224 pub fn is_empty(&self) -> bool {
225 self.actions.is_empty()
226 }
227
228 /// Get the number of recorded hunks.
229 ///

Callers 1

is_empty_contentsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected