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

Method from_parts

atomic-repository/src/repository/remote_cache.rs:109–114  ·  view source on GitHub ↗

A slice from its encoded rows and its spans.

(rows: &[u8], spans: Vec<SpanBytes>)

Source from the content-addressed store, hash-verified

107
108 /// A slice from its encoded rows and its spans.
109 pub fn from_parts(rows: &[u8], spans: Vec<SpanBytes>) -> Result<Self, RepositoryError> {
110 Ok(Self {
111 rows: decode(rows)?,
112 spans,
113 })
114 }
115}
116
117/// Why the repository refused a sandbox's change. Nothing is written when

Callers

nothing calls this directly

Calls 1

decodeFunction · 0.70

Tested by

no test coverage detected