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

Method as_edge_map

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

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

(&self)

Source from the content-addressed store, hash-verified

112
113 /// Get a reference to the inner EdgeUpdate, if this is one.
114 pub fn as_edge_map(&self) -> Option<&EdgeUpdate<H>> {
115 match self {
116 Atom::EdgeUpdate(e) => Some(e),
117 _ => None,
118 }
119 }
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>> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected