rust_hdl_core/type_descriptor.rs
1#[derive(Clone, Debug)]
2pub struct TypeDescriptor {
3 pub name: String,
4 pub kind: TypeKind,
5}
6
7#[derive(Clone, Debug)]
8pub struct TypeField {
9 pub fieldname: String,
10 pub kind: TypeDescriptor,
11}
12
13#[derive(Clone, Debug)]
14pub enum TypeKind {
15 Bits(usize),
16 Signed(usize),
17 Enum(Vec<String>),
18 Composite(Vec<Box<TypeField>>),
19}