pub enum ModuleKind {
Prime,
Series,
Parallel,
Node(NodeIndex),
}Expand description
Module kinds of nodes in a MDTree.
Each module corresponds to a set of nodes in the original graph, the leaves of the subtree rooted at that node.
The module kinds are determined by the quotient graph of a module that is obtained by taking a single node from each child module.
Variants§
Prime
A prime module. Its quotient graph has only trivial modules.
Series
A series module. Its quotient graph is a complete graph.
Parallel
A parallel module. Its quotient graph is an empty graph.
Node(NodeIndex)
A trivial module with a single vertex. This is leaf node in the MDTree.
Trait Implementations§
source§impl Clone for ModuleKind
impl Clone for ModuleKind
source§fn clone(&self) -> ModuleKind
fn clone(&self) -> ModuleKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ModuleKind
impl Debug for ModuleKind
source§impl Hash for ModuleKind
impl Hash for ModuleKind
source§impl Ord for ModuleKind
impl Ord for ModuleKind
source§fn cmp(&self, other: &ModuleKind) -> Ordering
fn cmp(&self, other: &ModuleKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ModuleKind
impl PartialEq for ModuleKind
source§fn eq(&self, other: &ModuleKind) -> bool
fn eq(&self, other: &ModuleKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ModuleKind
impl PartialOrd for ModuleKind
source§fn partial_cmp(&self, other: &ModuleKind) -> Option<Ordering>
fn partial_cmp(&self, other: &ModuleKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for ModuleKind
impl Eq for ModuleKind
impl StructuralPartialEq for ModuleKind
Auto Trait Implementations§
impl Freeze for ModuleKind
impl RefUnwindSafe for ModuleKind
impl Send for ModuleKind
impl Sync for ModuleKind
impl Unpin for ModuleKind
impl UnwindSafe for ModuleKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.