Struct boolean_expression::Cube [−][src]
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 DontCare
s 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]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,