pub struct RustBackend;Expand description
The Rust code generation backend.
Trait Implementations§
Source§impl CodegenBackend for RustBackend
impl CodegenBackend for RustBackend
Source§fn generate(
&self,
ir: &ValidatedDef,
config: &GenTarget,
) -> Result<String, CodegenError>
fn generate( &self, ir: &ValidatedDef, config: &GenTarget, ) -> Result<String, CodegenError>
Generate source code from the decoder IR and configuration.
Source§fn formatter_command(&self) -> Option<&[&str]>
fn formatter_command(&self) -> Option<&[&str]>
Command to format the generated source.
None skips formatting.Auto Trait Implementations§
impl Freeze for RustBackend
impl RefUnwindSafe for RustBackend
impl Send for RustBackend
impl Sync for RustBackend
impl Unpin for RustBackend
impl UnsafeUnpin for RustBackend
impl UnwindSafe for RustBackend
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