pub trait RawDomain {
type Key;
// Required method
fn len(&self) -> usize;
// Provided method
fn is_empty(&self) -> bool { ... }
}
Expand description
RawDomain
is a trait that defines the behavior of a store that holds the vertices
associated with a hyperedge or hyperfacet. It is used to abstract over different
implementations of edge storage, such as arrays, vectors, or sets.
note: The trait is sealed to prevent external implementations, ensuring that only the crate can define how edges are stored. This is to maintain consistency and prevent misuse of the trait in different contexts.