pub struct GeneratorFixed<'types> { /* private fields */ }Expand description
Implementations§
Source§impl<'types> GeneratorFixed<'types>
impl<'types> GeneratorFixed<'types>
Sourcepub fn generate_type(
self,
ident: Ident,
) -> Result<GeneratorFixed<'types>, Error>
pub fn generate_type( self, ident: Ident, ) -> Result<GeneratorFixed<'types>, Error>
Sourcepub fn generate_all_types(self) -> Result<Self, Error>
pub fn generate_all_types(self) -> Result<Self, Error>
Sourcepub fn finish(self) -> TokenStream
pub fn finish(self) -> TokenStream
Finish the code generation.
This will return the generated code as TokenStream.
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for GeneratorFixed<'types>
impl<'types> !RefUnwindSafe for GeneratorFixed<'types>
impl<'types> !Send for GeneratorFixed<'types>
impl<'types> !Sync for GeneratorFixed<'types>
impl<'types> Unpin for GeneratorFixed<'types>
impl<'types> !UnwindSafe for GeneratorFixed<'types>
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