pub struct Thread {
pub registers: Vec<u32>,
pub predicates: [bool; 4],
pub special_registers: SpecialRegisters,
}Fields§
§registers: Vec<u32>§predicates: [bool; 4]§special_registers: SpecialRegistersImplementations§
Source§impl Thread
impl Thread
pub fn new(register_count: u32) -> Self
pub fn with_special_registers( register_count: u32, special: SpecialRegisters, ) -> Self
pub fn read_register(&self, index: u8) -> u32
pub fn write_register(&mut self, index: u8, value: u32)
pub fn read_predicate(&self, index: u8) -> bool
pub fn write_predicate(&mut self, index: u8, value: bool)
pub fn read_special(&self, index: u8) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Thread
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnsafeUnpin for Thread
impl UnwindSafe for Thread
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