Working commit

This commit is contained in:
2025-06-20 21:48:23 +10:00
parent 94e1cf2eb0
commit 06d3eebaa1
18 changed files with 316 additions and 159 deletions

View File

@@ -135,6 +135,11 @@ impl Registry {
s
}
pub fn preload<T: Type>(&mut self, _name: impl Display) -> &mut Self {
self.include::<T>();
self
}
pub fn include<T: Type>(&mut self) -> &mut Self {
self.types
.insert(T::name().to_string())
@@ -150,11 +155,6 @@ impl Registry {
self
}
pub fn preload<T: Type>(&mut self, name: impl Display) -> &mut Self {
self.include::<T>();
self
}
pub fn done(&self) -> String {
self.to_string()
}