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

Method content_str

atomic-core/src/output/crdt.rs:97–99  ·  view source on GitHub ↗

Returns the token content as a string (lossy UTF-8 conversion).

(&self)

Source from the content-addressed store, hash-verified

95
96 /// Returns the token content as a string (lossy UTF-8 conversion).
97 pub fn content_str(&self) -> String {
98 String::from_utf8_lossy(&self.content).into_owned()
99 }
100
101 /// Returns true if the token is alive (not deleted).
102 pub fn is_alive(&self) -> bool {

Callers 2

contentMethod · 0.45
full_contentMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected