forked from libre-chip/fayalite
add PhantomData as a hdl bundle
This commit is contained in:
parent
bf907c3872
commit
59cef3f398
3 changed files with 255 additions and 22 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue