Skip to content

Commit

Permalink
ResultTerm can now unwrap to its inner ArcTerm
Browse files Browse the repository at this point in the history
  • Loading branch information
pchampin committed Nov 22, 2024
1 parent 0e82184 commit d02fa2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sparql/src/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ impl ResultTerm {
.get_or_init(|| SparqlValue::try_from_term(&self.inner))
.as_ref()
}

/// Unwrap the inner `ArcTerm`
pub fn unwrap(self) -> ArcTerm {
self.inner
}
}

impl From<ArcTerm> for ResultTerm {
Expand Down

0 comments on commit d02fa2c

Please sign in to comment.