Struct boolean_expression::Cube [] [src]

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

Methods

impl Cube
[src]

[src]

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

[src]

Return an iterator over variable assignments.

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

[src]

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

Trait Implementations

impl Clone for Cube
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Cube
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Cube
[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 !=.

impl Eq for Cube
[src]

impl PartialOrd for Cube
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Cube
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more