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

Method trunk

atomic-repository/src/repository/semantic_closure.rs:168–174  ·  view source on GitHub ↗

The folded state of `trunk` in the current closure; empty when the closure never touched it.

(&self, trunk: &TrunkId)

Source from the content-addressed store, hash-verified

166 /// The folded state of `trunk` in the current closure; empty when the
167 /// closure never touched it.
168 pub(super) fn trunk(&self, trunk: &TrunkId) -> TrunkBranchState {
169 self.closures
170 .first()
171 .and_then(|closure| closure.trunks.get(trunk))
172 .cloned()
173 .unwrap_or_default()
174 }
175
176 #[cfg(test)]
177 pub(super) fn folded_len(&self) -> usize {

Callers 1

Calls 1

getMethod · 0.65

Tested by

no test coverage detected