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

Method content

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

Returns the line content by concatenating all alive tokens.

(&self)

Source from the content-addressed store, hash-verified

147
148 /// Returns the line content by concatenating all alive tokens.
149 pub fn content(&self) -> String {
150 self.tokens
151 .iter()
152 .filter(|t| t.is_alive())
153 .map(|t| t.content_str())
154 .collect()
155 }
156
157 /// Returns the line content including deleted tokens (for history).
158 pub fn full_content(&self) -> String {

Callers

nothing calls this directly

Calls 3

iterMethod · 0.45
is_aliveMethod · 0.45
content_strMethod · 0.45

Tested by

no test coverage detected