[][src]Struct biodivine_lib_bdd::BddValuation

pub struct BddValuation(_);

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.

Methods

impl BddValuation[src]

pub fn new(values: Vec<bool>) -> BddValuation[src]

Create a new valuation from a vector of variables.

pub fn value(&self, variable: BddVariable) -> bool[src]

Get a value of a specific BDD variable in this valuation.

pub fn num_vars(&self) -> u16[src]

Number of variables in this valuation (used mostly for consistency checks).

Trait Implementations

impl Clone for BddValuation[src]

impl Debug for BddValuation[src]

impl Display for BddValuation[src]

impl Eq for BddValuation[src]

impl Hash for BddValuation[src]

impl PartialEq<BddValuation> for BddValuation[src]

impl StructuralEq for BddValuation[src]

impl StructuralPartialEq for BddValuation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.