We are going to want to make inert pieces occultable too. Currently
this is meaningless since we only call load_inert when resolving the
occultation for *another* piece. But that is going to change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
}
#[derive(Debug)]
-pub struct PieceSpecLoaded {
- pub p: Box<dyn PieceTrait>,
+pub struct SpecLoaded<PT: ?Sized> {
+ pub p: Box<PT>,
pub occultable: PieceSpecLoadedOccultable,
}
+pub type PieceSpecLoaded = SpecLoaded<dyn PieceTrait>;
pub type PieceSpecLoadedOccultable =
Option<(OccultIlkName, Arc<dyn InertPieceTrait>)>;