pub enum ModuleKind<NodeId: Copy + PartialEq> {
Prime,
Series,
Parallel,
Node(NodeId),
}
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(NodeId)
A trivial module with a single node. This is leaf node in the MDTree.
Trait Implementations§
Source§impl<NodeId: Clone + Copy + PartialEq> Clone for ModuleKind<NodeId>
impl<NodeId: Clone + Copy + PartialEq> Clone for ModuleKind<NodeId>
Source§fn clone(&self) -> ModuleKind<NodeId>
fn clone(&self) -> ModuleKind<NodeId>
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<NodeId: Ord + Copy + PartialEq> Ord for ModuleKind<NodeId>
impl<NodeId: Ord + Copy + PartialEq> Ord for ModuleKind<NodeId>
Source§fn cmp(&self, other: &ModuleKind<NodeId>) -> Ordering
fn cmp(&self, other: &ModuleKind<NodeId>) -> 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<NodeId: PartialOrd + Copy + PartialEq> PartialOrd for ModuleKind<NodeId>
impl<NodeId: PartialOrd + Copy + PartialEq> PartialOrd for ModuleKind<NodeId>
impl<NodeId: Copy + Copy + PartialEq> Copy for ModuleKind<NodeId>
impl<NodeId: Eq + Copy + PartialEq> Eq for ModuleKind<NodeId>
impl<NodeId: Copy + PartialEq> StructuralPartialEq for ModuleKind<NodeId>
Auto Trait Implementations§
impl<NodeId> Freeze for ModuleKind<NodeId>where
NodeId: Freeze,
impl<NodeId> RefUnwindSafe for ModuleKind<NodeId>where
NodeId: RefUnwindSafe,
impl<NodeId> Send for ModuleKind<NodeId>where
NodeId: Send,
impl<NodeId> Sync for ModuleKind<NodeId>where
NodeId: Sync,
impl<NodeId> Unpin for ModuleKind<NodeId>where
NodeId: Unpin,
impl<NodeId> UnwindSafe for ModuleKind<NodeId>where
NodeId: UnwindSafe,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.