pub fn generic<T>(&mut self, ty: T) -> &mut Self
    where
        T: Into<Type>,
    {
        // Make sure that the name doesn't already include generics
        assert!(
            !self.name.contains("<"),
            "type name already includes generics"
        );

        self.generics.push(ty.into());
        self
    }
/// Add a generic to the type.
Add a generic to the type.
Add a generic to the type .
pub fn generic<T>(&mut self, ty: T) -> &mut Self
    where
        T: Into<Type>,
    {
        // Make sure that the name doesn't already include generics
        assert!(
            !self.name.contains("<"),
            "type name already includes generics"
        );
        self.generics.push(ty.into());
        self
    }
pub fn generic < T > ( & mut self , ty : T ) -> & mut Self where T : Into < Type > , { // Make sure that the name doesn't already include generics assert ! ( self name contains ( " " ) " " ) ; self . generics . push ( ty . into ( ) ) ; self }
Add a generic to the type.
Add a generic to the type .
&mut self
ty
T