usestd::fmt::{Display, Formatter};usethiserror::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)]pubstructNoSuchEntity;implDisplay forNoSuchEntity{fnfmt(&self, f:&mutFormatter<'_>)->std::fmt::Result{write!(f,"No such entity")}}