pub struct DisassemblerConfig<'a, R: Read, W: Write> {
pub reader: &'a mut R,
pub writer: Option<&'a mut W>,
}
Expand description
Config used to create a new Disassembler instance.
Takes two generics (R
and W
) that implement the Read
and Write
traits.
When the passed DisassemblerConfig::writer
is None
:
- the disassembler will return an error when using functions that attempt to write to the output.
Fields§
§reader: &'a mut R
§writer: Option<&'a mut W>
Auto Trait Implementations§
impl<'a, R, W> Freeze for DisassemblerConfig<'a, R, W>
impl<'a, R, W> RefUnwindSafe for DisassemblerConfig<'a, R, W>where
R: RefUnwindSafe,
W: RefUnwindSafe,
impl<'a, R, W> Send for DisassemblerConfig<'a, R, W>
impl<'a, R, W> Sync for DisassemblerConfig<'a, R, W>
impl<'a, R, W> Unpin for DisassemblerConfig<'a, R, W>
impl<'a, R, W> !UnwindSafe for DisassemblerConfig<'a, R, W>
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