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

Method empty

atomic-core/src/pristine/traits/view.rs:226–233  ·  view source on GitHub ↗

Return an explicitly filtered closure containing no changes.

()

Source from the content-addressed store, hash-verified

224
225 /// Return an explicitly filtered closure containing no changes.
226 pub fn empty() -> Self {
227 Self {
228 data: Arc::new(EffectiveProjectionData {
229 dependency_first: Vec::new(),
230 membership: HashSet::new(),
231 }),
232 }
233 }
234
235 /// Return whether `change_id` is in the validated closure.
236 pub fn contains(&self, change_id: impl Borrow<NodeId>) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected