pub struct GenBuilder { /* private fields */ }Expand description
Builder for decoder/disassembler code generation.
Implementations§
Source§impl GenBuilder
impl GenBuilder
Sourcepub fn type_map(self, chipi_type: &str, rust_path: &str) -> Self
pub fn type_map(self, chipi_type: &str, rust_path: &str) -> Self
Map a chipi type name to a Rust type path.
Sourcepub fn dispatch_default(self, dispatch: Dispatch) -> Self
pub fn dispatch_default(self, dispatch: Dispatch) -> Self
Set the default dispatch strategy.
Sourcepub fn dispatch_for(self, decoder_name: &str, dispatch: Dispatch) -> Self
pub fn dispatch_for(self, decoder_name: &str, dispatch: Dispatch) -> Self
Set a per-decoder dispatch strategy override.
Auto Trait Implementations§
impl Freeze for GenBuilder
impl RefUnwindSafe for GenBuilder
impl Send for GenBuilder
impl Sync for GenBuilder
impl Unpin for GenBuilder
impl UnsafeUnpin for GenBuilder
impl UnwindSafe for GenBuilder
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