Trait Hyperedge

Source
pub trait Hyperedge:
    Eq
    + Hash
    + Clone
    + IdVector {
    // Required method
    fn id_set(&self) -> HashSet<usize>;

    // Provided methods
    fn is_subset(&self, other: &Self) -> bool { ... }
    fn is_equal(&self, other: &Self) -> bool { ... }
    fn has_intersection(&self, other: &Self) -> bool { ... }
    fn is_disjoint(&self, other: &Self) -> bool { ... }
    fn is_empty(&self) -> bool { ... }
    fn is_singleton(&self) -> bool { ... }
}

Required Methods§

Source

fn id_set(&self) -> HashSet<usize>

Provided Methods§

Source

fn is_subset(&self, other: &Self) -> bool

Source

fn is_equal(&self, other: &Self) -> bool

Source

fn has_intersection(&self, other: &Self) -> bool

Source

fn is_disjoint(&self, other: &Self) -> bool

Source

fn is_empty(&self) -> bool

Source

fn is_singleton(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§