forked from libre-chip/fayalite
export more things
This commit is contained in:
parent
62058dc141
commit
b03d268a82
5 changed files with 19 additions and 14 deletions
|
@ -880,7 +880,7 @@ impl ToTokens for ParsedEnum {
|
|||
}
|
||||
fn sim_value_from_bits(
|
||||
&self,
|
||||
bits: &::fayalite::__bitvec::slice::BitSlice,
|
||||
bits: &::fayalite::bitvec::slice::BitSlice,
|
||||
) -> <Self as ::fayalite::ty::Type>::SimValue {
|
||||
let v = ::fayalite::enum_::EnumSimValueFromBits::new(*self, bits);
|
||||
match v.discriminant() {
|
||||
|
@ -890,7 +890,7 @@ impl ToTokens for ParsedEnum {
|
|||
fn sim_value_clone_from_bits(
|
||||
&self,
|
||||
value: &mut <Self as ::fayalite::ty::Type>::SimValue,
|
||||
bits: &::fayalite::__bitvec::slice::BitSlice,
|
||||
bits: &::fayalite::bitvec::slice::BitSlice,
|
||||
) {
|
||||
let v = ::fayalite::enum_::EnumSimValueFromBits::new(*self, bits);
|
||||
match v.discriminant() {
|
||||
|
@ -900,7 +900,7 @@ impl ToTokens for ParsedEnum {
|
|||
fn sim_value_to_bits(
|
||||
&self,
|
||||
value: &<Self as ::fayalite::ty::Type>::SimValue,
|
||||
bits: &mut ::fayalite::__bitvec::slice::BitSlice,
|
||||
bits: &mut ::fayalite::bitvec::slice::BitSlice,
|
||||
) {
|
||||
let v = ::fayalite::enum_::EnumSimValueToBits::new(*self, bits);
|
||||
match value {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue