#[non_exhaustive]pub struct InstalledModule {
pub name: &'static str,
pub hooks: Vec<Hook>,
pub states: Vec<&'static str>,
pub debug_entries: Vec<String>,
}Expand description
What a module declared, as Game::modules
lists it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: &'static strIts name.
hooks: Vec<Hook>The hooks the game calls.
states: Vec<&'static str>The types it put on the context, by type_name.
debug_entries: Vec<String>Its entries’ names on the debug menu, as they read at install, in the order declared.
Implementations§
Trait Implementations§
Source§impl Clone for InstalledModule
impl Clone for InstalledModule
Source§fn clone(&self) -> InstalledModule
fn clone(&self) -> InstalledModule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstalledModule
impl Debug for InstalledModule
impl Eq for InstalledModule
Source§impl PartialEq for InstalledModule
impl PartialEq for InstalledModule
impl StructuralPartialEq for InstalledModule
Auto Trait Implementations§
impl Freeze for InstalledModule
impl RefUnwindSafe for InstalledModule
impl Send for InstalledModule
impl Sync for InstalledModule
impl Unpin for InstalledModule
impl UnsafeUnpin for InstalledModule
impl UnwindSafe for InstalledModule
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