brood 0.9.1

A fast and flexible entity component system library.
Documentation
//! Traits indicating that a [`Registry`] contains a specific type.
//!
//! Being able to prove that a registry contains a specific component means that the component's
//! presence can be verified at compile-time. Additionally, being able to prove that a registry
//! contains a heterogeneous list of components allows transforming that list into a canonical form
//! at compile-time, paving the way for storage optimizations.
//!
//! [`Registry`]: crate::registry::Registry

pub(crate) mod entities;
pub(crate) mod entity;
pub(crate) mod filter;
#[cfg(feature = "rayon")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "rayon")))]
pub(crate) mod par_views;
pub(crate) mod views;

mod component;
#[cfg(feature = "rayon")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "rayon")))]
mod par_query;
mod query;

pub use component::ContainsComponent;
pub use entities::ContainsEntities;
pub use entity::ContainsEntity;
#[cfg(feature = "rayon")]
pub use par_query::ContainsParQuery;
pub use query::ContainsQuery;
pub use views::ContainsViews;

pub(crate) use filter::ContainsFilter;
#[cfg(feature = "rayon")]
pub(crate) use par_views::ContainsParViews;

/// Type marker for a component contained in an entity.
pub enum Contained {}

/// Type marker for a component not contained in an entity.
pub enum NotContained {}

/// Defines the end of a heterogeneous list of containments.
pub enum Null {}

pub enum EntityIdentifierMarker {}