make helpers generic

This commit is contained in:
satotake 2021-12-08 12:52:56 +00:00 committed by GitHub
parent 11daeb4374
commit 521ccbbb0e
3 changed files with 57 additions and 61 deletions

View file

@ -222,7 +222,9 @@ pub enum SymbolStorage<GeneralReg: RegTrait, FloatReg: RegTrait> {
},
}
pub trait RegTrait: Copy + Eq + std::hash::Hash + std::fmt::Debug + 'static {}
pub trait RegTrait: Copy + Eq + std::hash::Hash + std::fmt::Debug + 'static {
fn value(&self) -> u8;
}
pub struct Backend64Bit<
'a,