Struct biodivine_lib_bdd::BddValuation [−][src]
pub struct BddValuation(_);
Expand description
Exactly describes one assignment of boolean values to variables of a Bdd
.
It can be used as a witness of Bdd
non-emptiness, since one can evaluate every Bdd
in some corresponding valuation and get a true/false
result.
Implementations
Create a new valuation from a vector of variables.
Create a valuation with all variables set to false.
Create a valuation with all variables set to true.
Flip the value of a given Bdd variable.
Set the value of the given variable
to false
.
Set the value of the given variable
to true
.
Update value
of the given variable
.
Get a value of a specific BDD variable in this valuation.
Number of variables in this valuation (used mostly for consistency checks).
Returns true if the values set in this valuation match the values fixed in the given partial valuation. I.e. the two valuations agree on fixed values.
In other words this >= valuation
in terms of specificity.
Trait Implementations
Convert a BddValuation to a Bdd with, well, exactly that one valuation.
Performs the conversion.
Allow indexing of BddValuation
using BddVariables
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
If possible, convert the given partial valuation to valuation with the same number of variables. Partial valuation must contain values of all variables.
Auto Trait Implementations
impl RefUnwindSafe for BddValuation
impl Send for BddValuation
impl Sync for BddValuation
impl Unpin for BddValuation
impl UnwindSafe for BddValuation
Blanket Implementations
Mutably borrows from an owned value. Read more