Skip to content

Commit 24869fd

Browse files
committed
add: impl From<UserDefinedPred> for Pred
1 parent 463e7d3 commit 24869fd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/chc.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,12 @@ impl From<MatcherPred> for Pred {
981981
}
982982
}
983983

984+
impl From<UserDefinedPred> for Pred {
985+
fn from(p: UserDefinedPred) -> Pred {
986+
Pred::UserDefined(p)
987+
}
988+
}
989+
984990
impl Pred {
985991
pub fn name(&self) -> std::borrow::Cow<'static, str> {
986992
match self {

0 commit comments

Comments
 (0)