We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3adb23c commit 30fd2b6Copy full SHA for 30fd2b6
hugr-persistent/src/persistent_hugr.rs
@@ -454,6 +454,8 @@ impl<R> PersistentHugr<R> {
454
pub fn base_commit(&self) -> &Commit;
455
/// Get the commit with ID `commit_id`.
456
pub fn get_commit(&self, commit_id: CommitId) -> &Commit;
457
+ /// Check whether `commit_id` exists and return it.
458
+ pub fn try_get_commit(&self, commit_id: CommitId) -> Option<&Commit>;
459
/// Get an iterator over all nodes inserted by `commit_id`.
460
///
461
/// All nodes will be PatchNodes with commit ID `commit_id`.
0 commit comments