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

Method is_binary

atomic-core/src/diff/display.rs:178–180  ·  view source on GitHub ↗

Check if this line contains binary (non-UTF8) content.

(&self)

Source from the content-addressed store, hash-verified

176
177 /// Check if this line contains binary (non-UTF8) content.
178 pub fn is_binary(&self) -> bool {
179 self.content.is_empty() && !self.raw.is_empty()
180 }
181
182 /// Get a display-friendly representation of the content.
183 ///

Callers 1

display_contentMethod · 0.45

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected