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

Method fmt

atomic-core/src/change/store.rs:288–300  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

286
287impl std::fmt::Display for MemoryStoreError {
288 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
289 match self {
290 Self::NotFound(hash) => write!(f, "Change not found: {}", hash),
291 Self::OutOfBounds { start, end, len } => {
292 write!(
293 f,
294 "Byte range [{}, {}) out of bounds for content of length {}",
295 start, end, len
296 )
297 }
298 Self::ChangeError(msg) => write!(f, "Change error: {}", msg),
299 }
300 }
301}
302
303impl std::error::Error for MemoryStoreError {}

Callers

nothing calls this directly

Calls 5

fieldMethod · 0.80
lenMethod · 0.45
unwrapMethod · 0.45
readMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected