/// Create a new enumeration type.
///
/// # Example
///
/// ```
/// use moore_vhdl::ty2::{Type, EnumBasetype};
///
/// let ty = EnumBasetype::new(vec![
///     "first".into(),
///     "second".into(),
///     '0'.into(),
///     '1'.into(),
/// ]);
///
/// assert_eq!(format!("{}", ty), "(first, second, '0', '1')");
/// ```
Create a new enumeration type.
Create a new enumeration type .
pub fn new<I: IntoIterator<Item = EnumVariant>>(lits: I) -> EnumBasetype {
        EnumBasetype {
            lits: lits.into_iter().collect(),
        }
    }
pub fn new < I : IntoIterator < Item = EnumVariant > > ( lits : I ) -> EnumBasetype { EnumBasetype { lits : lits . into_iter ( ) . collect ( ) , } }
Create a new enumeration type.
Create a new enumeration type .
lits
I
example
```
use moore_vhdl::ty2::{Type, EnumBasetype}.




` ` ` use moore_vhdl :: ty2 :: { Type EnumBasetype } .