[][src]Struct boolean_expression::Cube

pub struct Cube(_);

A Cube is one (multidimensional) cube in the variable space: i.e., a particular set of variable assignments, where each variable is assigned either true, false, or "don't care".

Implementations

impl Cube[src]

pub fn true_cube(vars: usize) -> Cube[src]

Construct an always-true cube (all variables are DontCare) for vars variables.

pub fn vars(&self) -> Iter<CubeVar>[src]

Return an iterator over variable assignments.

pub fn merge_with(&self, other: &Cube) -> CubeMergeResult[src]

Attempt to merge this cube with another, which may cancel one or the other (if completely covered), expand one or the other (if possible, to increase the number of DontCares and thus simplify the final expression), or merge the two into a single cube, or do nothing.

pub fn with_var(&self, idx: usize, val: CubeVar) -> Cube[src]

Return a new cube equal to this cube, but with the particular variable

Trait Implementations

impl Clone for Cube[src]

impl Debug for Cube[src]

impl Eq for Cube[src]

impl Ord for Cube[src]

impl PartialEq<Cube> for Cube[src]

impl PartialOrd<Cube> for Cube[src]

Auto Trait Implementations

impl RefUnwindSafe for Cube

impl Send for Cube

impl Sync for Cube

impl Unpin for Cube

impl UnwindSafe for Cube

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, 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.