struct DisasmBase<'a> {
reader: MemReaderRef<'a>,
opers: &'a [(u8, &'static [Oper])],
addresses: Vec<usize>,
texts: Vec<Ws2DString>,
}
Available on crate feature
will-plus
only.Fields§
§reader: MemReaderRef<'a>
§opers: &'a [(u8, &'static [Oper])]
§addresses: Vec<usize>
§texts: Vec<Ws2DString>
Implementations§
Source§impl<'a> DisasmBase<'a>
impl<'a> DisasmBase<'a>
pub fn new(data: &'a [u8], opers: &'a [(u8, &'static [Oper])]) -> Self
fn read_instruction(&mut self) -> Result<(u8, Vec<Box<dyn Any>>)>
fn read_operands(&mut self, opers: &[Oper]) -> Result<Vec<Box<dyn Any>>>
fn read_operand(&mut self, oper: Oper) -> Result<Box<dyn Any>>
fn handle_choice_screen( &mut self, operands: &mut Vec<Box<dyn Any>>, ) -> Result<()>
fn handle_message(&mut self, operands: &mut Vec<Box<dyn Any>>) -> Result<()>
fn handle_name(&mut self, operands: &mut Vec<Box<dyn Any>>) -> Result<()>
Trait Implementations§
Source§impl<'a> Disasm for DisasmBase<'a>
impl<'a> Disasm for DisasmBase<'a>
fn disassmble(self) -> Result<(Vec<usize>, Vec<Ws2DString>)>
Auto Trait Implementations§
impl<'a> Freeze for DisasmBase<'a>
impl<'a> RefUnwindSafe for DisasmBase<'a>
impl<'a> Send for DisasmBase<'a>
impl<'a> Sync for DisasmBase<'a>
impl<'a> Unpin for DisasmBase<'a>
impl<'a> UnwindSafe for DisasmBase<'a>
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