Skip to main content

VillagerProfessions

Trait VillagerProfessions 

pub trait VillagerProfessions {
    // Required method
    fn register(&mut self, definition: ProfessionDefinition);
}
Expand description

Load-scoped profession registrar. Registration records the calling mod as owner.

Required Methods§

fn register(&mut self, definition: ProfessionDefinition)

Declare one profession; all references are checked before publication.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§