Struct boolean_expression::CubeList [] [src]

pub struct CubeList(_);

A CubeList is a sum (OR'd list) of cubes. It represents a Boolean expression in sum-of-products form, by construction.

The CubeList abstraction supports only indexed anonymous variables (variable 0, 1, ...), and does not (yet) have a wrapper supporting an arbitrary terminal type T. This may be implemented in the future.

The CubeList abstraction is used internally to convert from a BDD to a quasi-minimized Boolean expression.

Methods

impl CubeList
[src]

[src]

Construct a new, empty, cube list (equivalent to a constant false).

[src]

Construct a cube list from a list of Cube structs.

[src]

Return an iterator over all cubes.

[src]

Merge this cube list with another, canceling or merging cubes where possible. The resulting cube list is not guaranteed to be minimal (that is the set-cover problem, which is NP-Complete), but is reduced somewhat by a very simple reduction/merging algorithm.

[src]

Trait Implementations

impl Clone for CubeList
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for CubeList
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for CubeList
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

Auto Trait Implementations

impl Send for CubeList

impl Sync for CubeList