pub struct TridentTemplates { /* private fields */ }Expand description
Simple template engine for Trident code generation
Implementations§
Source§impl TridentTemplates
impl TridentTemplates
pub fn new() -> Result<Self, TemplateError>
Sourcepub fn generate(
&self,
idls: &[Idl],
trident_version: &str,
) -> Result<GeneratedFiles, TemplateError>
pub fn generate( &self, idls: &[Idl], trident_version: &str, ) -> Result<GeneratedFiles, TemplateError>
Generate all templates from IDLs
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TridentTemplates
impl !RefUnwindSafe for TridentTemplates
impl Send for TridentTemplates
impl Sync for TridentTemplates
impl Unpin for TridentTemplates
impl !UnwindSafe for TridentTemplates
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