genesis 0.2.2

A library for generating statically-typed ECS worlds.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::fmt::{Display, Formatter};
use thiserror::Error;

/// Error indicating that an entity passed to some operation doesn't exist.
/// This usually indicates that the generational index of the entity was outdated.
#[derive(Error, Debug)]
pub struct NoSuchEntity;

impl Display for NoSuchEntity {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        write!(f, "No such entity")
    }
}