[][src]Enum zdd::ZddTree

pub enum ZddTree<Label> {
    Node(Label, Zdd<Label>, Zdd<Label>),
    HasOne(Zdd<Label>),
    Zero,
}

Actual ZDD enum type.

Usually a ZDD is either:

  • a node with a label and a left and a right hash consed subtree,
  • the one terminal, the set containing only the null combination,
  • the zero terminal, the empty set.

However we use 0-element edges that indicate a path contains the null combination. So there's no one terminal.

Variants

Node(Label, Zdd<Label>, Zdd<Label>)

A node with a label and two kids.

HasOne(Zdd<Label>)

Indicates the underlying contains the empty combination.

Zero

The empty set.

Methods

impl<Label: Ord + Clone> ZddTree<Label>[src]

pub fn iter(&self) -> Iterator<Label>[src]

Returns an iterator over a ZddTree. There's no into_iter since a ZDD is immutable anyway.

Trait Implementations

impl<Label: Clone> Clone for ZddTree<Label>[src]

impl<Label: Ord + Clone + Display> Display for ZddTree<Label>[src]

impl<Label: Clone + Eq> Eq for ZddTree<Label>[src]

impl<Label: Hash> Hash for ZddTree<Label>[src]

impl<Label: PartialEq> PartialEq<ZddTree<Label>> for ZddTree<Label>[src]

impl<Label> StructuralPartialEq for ZddTree<Label>[src]

Auto Trait Implementations

impl<Label> RefUnwindSafe for ZddTree<Label> where
    Label: RefUnwindSafe

impl<Label> Send for ZddTree<Label> where
    Label: Send

impl<Label> Sync for ZddTree<Label> where
    Label: Sync

impl<Label> Unpin for ZddTree<Label> where
    Label: Unpin

impl<Label> UnwindSafe for ZddTree<Label> where
    Label: RefUnwindSafe + UnwindSafe

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,