Skip to content

Commit

Permalink
Add IntoBdd for &Bdd.
Browse files Browse the repository at this point in the history
  • Loading branch information
daemontus committed Nov 29, 2023
1 parent 3a60a72 commit b054b67
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/_macro_bdd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ impl IntoBdd for Bdd {
}
}

impl IntoBdd for &Bdd {
fn into_bdd(self, _variables: &BddVariableSet) -> Bdd {
self.clone()
}
}

impl IntoBdd for &str {
fn into_bdd(self, variables: &BddVariableSet) -> Bdd {
variables.mk_var_by_name(self)
Expand Down

0 comments on commit b054b67

Please sign in to comment.