brood 0.9.1

A fast and flexible entity component system library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Provides a `ContainsComponent` trait to indicate that a registry contains a component.

mod sealed;

use sealed::Sealed;

/// Indicates that a component is contained in the registry.
pub trait ContainsComponent<Component, Index>: Sealed<Component, Index> {}

impl<Registry, Component, Index> ContainsComponent<Component, Index> for Registry where
    Registry: Sealed<Component, Index>
{
}