pub struct SwiftCodeGenerator<'a> { /* private fields */ }Expand description
Main configuration object for Swift code generation.
Wraps a CodeGeneratorConfig and implements CodeGenerator so it can be
used by the installer pipeline.
Implementations§
Source§impl<'a> SwiftCodeGenerator<'a>
impl<'a> SwiftCodeGenerator<'a>
Sourcepub fn new(config: &'a CodeGeneratorConfig) -> Self
pub fn new(config: &'a CodeGeneratorConfig) -> Self
Create a Swift code generator with no encoding (plain types only).
Call with_plugins to enable serialization.
Sourcepub fn with_plugins(self, plugins: Vec<Arc<dyn EmitterPlugin<Swift>>>) -> Self
pub fn with_plugins(self, plugins: Vec<Arc<dyn EmitterPlugin<Swift>>>) -> Self
Set the pre-built plugin list, returning the modified generator.
Trait Implementations§
Source§impl<'a> CodeGenerator<'a> for SwiftCodeGenerator<'a>
impl<'a> CodeGenerator<'a> for SwiftCodeGenerator<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SwiftCodeGenerator<'a>
impl<'a> !Send for SwiftCodeGenerator<'a>
impl<'a> !Sync for SwiftCodeGenerator<'a>
impl<'a> !UnwindSafe for SwiftCodeGenerator<'a>
impl<'a> Freeze for SwiftCodeGenerator<'a>
impl<'a> Unpin for SwiftCodeGenerator<'a>
impl<'a> UnsafeUnpin for SwiftCodeGenerator<'a>
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