Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ has_contents
Method
has_contents
atomic-core/src/change/store.rs:455–462 ·
view source on GitHub ↗
(&self, hash: &Hash)
Source
from the content-addressed store, hash-verified
453
}
454
455
fn has_contents(&self, hash: &Hash) -> bool {
456
self.changes
457
.read()
458
.unwrap()
459
.get(hash)
460
.map(|c| !c.contents.is_empty())
461
.unwrap_or(false)
462
}
463
464
fn get_contents<F>(
465
&self,
Callers
nothing calls this directly
Calls
4
get
Method · 0.65
unwrap
Method · 0.45
read
Method · 0.45
is_empty
Method · 0.45
Tested by
no test coverage detected