pub struct Catalog {
pub root: PathBuf,
pub concerns: Concerns,
pub modules: Vec<ModuleCrate>,
pub skills: Pack,
}Expand description
What the tools know of an engine checkout: its concerns, the modules it builds and its skill pack.
Fields§
§root: PathBufThe checkout’s folder (the one holding crates/).
concerns: ConcernsIts docs/modules.ron.
modules: Vec<ModuleCrate>Its modules: every crate under crates/ with
[package.metadata.shuyi], by name.
skills: PackIts skill pack, skills/ (empty in a checkout without one).
Implementations§
Source§impl Catalog
impl Catalog
Sourcepub fn embedded() -> Result<Self, String>
pub fn embedded() -> Result<Self, String>
The catalog of the engine this shuyi was built from, as it embeds
it, for a game made with no checkout: its concerns, its modules by
the shuyi crate’s features, one a module, with no metadata, and its
skill pack.
Sourcepub fn module(&self, name: &str) -> Option<&ModuleCrate>
pub fn module(&self, name: &str) -> Option<&ModuleCrate>
The module named name, with or without shuyi-.
Trait Implementations§
impl Eq for Catalog
impl StructuralPartialEq for Catalog
Auto Trait Implementations§
impl Freeze for Catalog
impl RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl UnsafeUnpin for Catalog
impl UnwindSafe for Catalog
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.