radicle: add Op::load method
Adds an Op::load helper method for loading an Entry, given its Oid and the
store it is stored in.
This can be useful for downstream consumers to inspect operations on COBs given
a single Oid, without having to load the entire object and/or graph.
It can also be useful when looking at implementing COB stream primitives.
1 file changed
+35
-0
c847a16e
→
9ef9c5d5
modified radicle/src/cob/op.rs
@@ -3,6 +3,7 @@ use radicle_cob::Manifest;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -23,6 +24,23 @@ pub enum OpEncodingError {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -93,6 +111,23 @@ impl<A> Op<A> {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|