pub struct Generator { /* private fields */ }Implementations§
Source§impl Generator
impl Generator
pub fn new(enabled_async: bool, is_crate: bool) -> Self
Sourcepub fn pre_register_enums(document: &Document)
pub fn pre_register_enums(document: &Document)
Pre-register all enum member symbols from a document into the symbol table. This ensures enum symbols are available before any code generation begins, preventing incorrect resolution when multiple enums share the same member names.
pub fn document( &self, document: &Document, ) -> Result<(String, String), Box<dyn Error>>
pub fn declarations( &self, decls: &Vec<Declaration>, indent: usize, ) -> Result<String, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for Generator
impl RefUnwindSafe for Generator
impl Send for Generator
impl Sync for Generator
impl Unpin for Generator
impl UnwindSafe for Generator
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