pub struct M68kRegisterBits { /* private fields */ }Expand description
Contains bitfield used with M68kOperand::RegBits
Contains register bits for movem etc. (always in d0-d7, a0-a7, fp0-fp7 order)
Implementations§
Source§impl M68kRegisterBits
impl M68kRegisterBits
Sourcepub fn from_bitfield(bitfield: u32) -> CsResult<Self>
pub fn from_bitfield(bitfield: u32) -> CsResult<Self>
Create from a bitfield where 0th bit is d0, 1th bit is d1, …
Returns an error if invalid bits are set.
Sourcepub fn from_bitfield_infallible(bitfield: u32) -> Self
pub fn from_bitfield_infallible(bitfield: u32) -> Self
Create from a bitfield where 0th bit is d0, 1th bit is d1, …
Invalid bits are ignored.
Sourcepub fn from_register_iter<T: Iterator<Item = R>, R: Into<Type>>(
reg_iter: T,
) -> CsResult<Self>
pub fn from_register_iter<T: Iterator<Item = R>, R: Into<Type>>( reg_iter: T, ) -> CsResult<Self>
Create from iterator over registers: d0-d7, a0-a7, fp0-fp7 Invalid registers will cause an error
Sourcepub fn m68k_reg_to_bit_idx(reg: Type) -> CsResult<u8>
pub fn m68k_reg_to_bit_idx(reg: Type) -> CsResult<u8>
Maps an M68K register to a bitfield index
Returns an error if the register is invalid
Trait Implementations§
Source§impl Clone for M68kRegisterBits
impl Clone for M68kRegisterBits
Source§fn clone(&self) -> M68kRegisterBits
fn clone(&self) -> M68kRegisterBits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for M68kRegisterBits
impl Debug for M68kRegisterBits
Source§impl Hash for M68kRegisterBits
impl Hash for M68kRegisterBits
Source§impl PartialEq for M68kRegisterBits
impl PartialEq for M68kRegisterBits
impl Copy for M68kRegisterBits
impl Eq for M68kRegisterBits
impl StructuralPartialEq for M68kRegisterBits
Auto Trait Implementations§
impl Freeze for M68kRegisterBits
impl RefUnwindSafe for M68kRegisterBits
impl Send for M68kRegisterBits
impl Sync for M68kRegisterBits
impl Unpin for M68kRegisterBits
impl UnwindSafe for M68kRegisterBits
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