pub struct CodeGenerator { /* private fields */ }Expand description
Enhanced code generator that orchestrates multiple backends
Implementations§
Source§impl CodeGenerator
impl CodeGenerator
Sourcepub fn add_backend<T: CodeGenBackend + 'static>(
&mut self,
name: String,
backend: T,
)
pub fn add_backend<T: CodeGenBackend + 'static>( &mut self, name: String, backend: T, )
Add a new backend to the generator
Sourcepub fn available_targets(&self) -> Vec<String>
pub fn available_targets(&self) -> Vec<String>
Get list of available target names
Trait Implementations§
Source§impl Debug for CodeGenerator
impl Debug for CodeGenerator
Auto Trait Implementations§
impl Freeze for CodeGenerator
impl !RefUnwindSafe for CodeGenerator
impl !Send for CodeGenerator
impl !Sync for CodeGenerator
impl Unpin for CodeGenerator
impl UnsafeUnpin for CodeGenerator
impl !UnwindSafe for CodeGenerator
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more