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

Method optional_edges

atomic-core/src/change/format_v3/graph_fields/decode.rs:242–248  ·  view source on GitHub ↗
(&mut self, r: usize)

Source from the content-addressed store, hash-verified

240 }
241 }
242 fn optional_edges(&mut self, r: usize) -> FormatResult<Option<CompactEdgeUpdate>> {
243 if self.flag()? {
244 Ok(Some(self.edges(r)?))
245 } else {
246 Ok(None)
247 }
248 }
249 fn op(&mut self) -> FormatResult<CompactGraphOp> {
250 use CompactGraphOp::*;
251 let op = match get(&mut self.control)? {

Callers 1

opMethod · 0.45

Calls 2

flagMethod · 0.45
edgesMethod · 0.45

Tested by

no test coverage detected