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

Method as_new_vertex

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

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

(&self)

Source from the content-addressed store, hash-verified

96
97 /// Get a reference to the inner Insertion, if this is one.
98 pub fn as_new_vertex(&self) -> Option<&Insertion<H>> {
99 match self {
100 Atom::Insertion(v) => Some(v),
101 _ => None,
102 }
103 }
104
105 /// Get a mutable reference to the inner Insertion, if this is one.
106 pub fn as_new_vertex_mut(&mut self) -> Option<&mut Insertion<H>> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected