EdgeType

Trait EdgeType 

Source
pub trait EdgeType<E: Entity>: Clone + 'static {
    // Required method
    fn id() -> usize;

    // Provided method
    fn name() -> &'static str { ... }
}

Required Methods§

Source

fn id() -> usize

The index of this item in the owner, which is initialized globally per type upon first access. We explicitly initialize this in a ctor in order to know how many EdgeType<E> types exist globally when we construct any NetworkStore<E>.

Provided Methods§

Source

fn name() -> &'static str

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§