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

Method as_edge_map_mut

atomic-core/src/change/atom.rs:122–127  ·  view source on GitHub ↗

Get a mutable reference to the inner EdgeUpdate, if this is one.

(&mut self)

Source from the content-addressed store, hash-verified

120
121 /// Get a mutable reference to the inner EdgeUpdate, if this is one.
122 pub fn as_edge_map_mut(&mut self) -> Option<&mut EdgeUpdate<H>> {
123 match self {
124 Atom::EdgeUpdate(e) => Some(e),
125 _ => None,
126 }
127 }
128
129 /// Get the inode (file reference) for this atom.
130 pub fn inode(&self) -> &Position<H> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected