add PhantomData as a hdl bundle

This commit is contained in:
Jacob Lifshay 2024-10-10 20:48:09 -07:00
parent bf907c3872
commit 59cef3f398
Signed by: programmerjake
SSH key fingerprint: SHA256:B1iRVvUJkvd7upMIiMqn6OyxvD2SgJkAH3ZnUOj6z+c
3 changed files with 255 additions and 22 deletions

View file

@ -1,6 +1,7 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
// See Notices.txt for copyright information
use fayalite::prelude::*;
use std::marker::PhantomData;
#[hdl(outline_generated)]
pub struct S<T, Len: Size, T2> {
@ -8,6 +9,8 @@ pub struct S<T, Len: Size, T2> {
b: UInt<3>,
pub(crate) c: ArrayType<UInt<1>, Len>,
pub d: T2,
pub e: PhantomData<T>,
pub f: PhantomData<Len>,
}
#[hdl(outline_generated)]