pub struct TemplateManager { /* private fields */ }Expand description
Template manager for Bevy AI
Implementations§
Source§impl TemplateManager
impl TemplateManager
Sourcepub fn generate(
&self,
template_name: &str,
context: &TemplateContext,
) -> Result<String>
pub fn generate( &self, template_name: &str, context: &TemplateContext, ) -> Result<String>
Generate code from template
Sourcepub fn available_templates(&self) -> Vec<&str>
pub fn available_templates(&self) -> Vec<&str>
Get available templates
Sourcepub fn register_template(&mut self, name: &str, template: &str) -> Result<()>
pub fn register_template(&mut self, name: &str, template: &str) -> Result<()>
Register custom template
Sourcepub fn builtin_templates() -> Vec<GameTemplate>
pub fn builtin_templates() -> Vec<GameTemplate>
Get built-in game templates
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TemplateManager
impl !UnwindSafe for TemplateManager
impl Freeze for TemplateManager
impl Send for TemplateManager
impl Sync for TemplateManager
impl Unpin for TemplateManager
impl UnsafeUnpin for TemplateManager
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