Added partialeq trait where relevant

This commit is contained in:
François Autin
2023-03-08 15:48:33 +01:00
parent aad2ecbd4c
commit 95e0ac4499
5 changed files with 15 additions and 36 deletions

View File

@ -22,7 +22,7 @@ impl RegisterNum for i64 {}
impl RegisterNum for f32 {}
#[derive(PartialEq)]
pub struct Register<U: RegisterNum> {
register: [U; 32]
}
@ -68,6 +68,7 @@ impl Register<f32> {
}
#[derive(PartialEq)]
pub struct Machine {
pub pc : u64,
pub sp: usize,