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

Method fmt

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

Source from the content-addressed store, hash-verified

262
263impl std::fmt::Display for MemoryStoreError {
264 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
265 match self {
266 Self::NotFound(hash) => write!(f, "Change not found: {}", hash),
267 Self::OutOfBounds { start, end, len } => {
268 write!(
269 f,
270 "Byte range [{}, {}) out of bounds for content of length {}",
271 start, end, len
272 )
273 }
274 Self::ChangeError(msg) => write!(f, "Change error: {}", msg),
275 }
276 }
277}
278
279impl std::error::Error for MemoryStoreError {}

Callers

nothing calls this directly

Calls 3

lenMethod · 0.45
unwrapMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected