fn mk_struct_field(&self, name: &str, ty: P<ast::Ty>) -> ast::StructField {
        codemap::dummy_spanned(ast::StructField_ {
            kind: ast::NamedField(ident(name), ast::Public),
            id: ast::DUMMY_NODE_ID,
            ty: ty,
            attrs: vec!(),
        })
    }
/// Creates a struct field from a member name and type.
Creates a struct field from a member name and type.
Creates a struct field from a member name and type .
fn mk_struct_field(&self, name: &str, ty: P<ast::Ty>) -> ast::StructField {
        codemap::dummy_spanned(ast::StructField_ {
            kind: ast::NamedField(ident(name), ast::Public),
            id: ast::DUMMY_NODE_ID,
            ty: ty,
            attrs: vec!(),
        })
    }
fn mk_struct_field ( & self , name : & str , ty : P < ast :: Ty > ) -> ast :: StructField { codemap :: dummy_spanned ( ast :: StructField_ { kind : ast :: NamedField ( ident ( name ) , ast :: Public ) , id : ast :: DUMMY_NODE_ID , ty : ty , attrs : vec ! ( ) , } ) }
Creates a struct field from a member name and type.
Creates a struct field from a member name and type .
&self
name
&str
ty
P<ast::Ty>
&self
name
&str
ty
P<ast::Ty>