pub struct BinjaBackend;Expand description
The Binary Ninja code generation backend.
Trait Implementations§
Source§impl CodegenBackend for BinjaBackend
impl CodegenBackend for BinjaBackend
Source§fn validate_lang_options(&self, options: &Value) -> Result<(), Vec<String>>
fn validate_lang_options(&self, options: &Value) -> Result<(), Vec<String>>
Validate language-specific options from the
lang_options config field.
Returns errors for unknown or invalid keys.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]>
Optional: command to format the generated source.
Auto Trait Implementations§
impl Freeze for BinjaBackend
impl RefUnwindSafe for BinjaBackend
impl Send for BinjaBackend
impl Sync for BinjaBackend
impl Unpin for BinjaBackend
impl UnsafeUnpin for BinjaBackend
impl UnwindSafe for BinjaBackend
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