fn struct_into_item_decl(
    item: &Item,
    body: ast::ItemStructBody,
    enum_item: Option<&Item>,
    storage: &Storage,
    source: &Source,
) -> Result<CompileMetaKind, QueryError> {
    Ok(match body {
        ast::ItemStructBody::UnitBody => unit_body_meta(item, enum_item),
        ast::ItemStructBody::TupleBody(tuple) => tuple_body_meta(item, enum_item, tuple),
        ast::ItemStructBody::StructBody(st) => {
            struct_body_meta(item, enum_item, storage, source, st)?
        }
    })
}
/// Convert an ast declaration into a struct.
Convert an ast declaration into a struct.
Convert an ast declaration into a struct .
fn struct_into_item_decl(
    item: &Item,
    body: ast::ItemStructBody,
    enum_item: Option<&Item>,
    storage: &Storage,
    source: &Source,
) -> Result<CompileMetaKind, QueryError> {
    Ok(match body {
        ast::ItemStructBody::UnitBody => unit_body_meta(item, enum_item),
        ast::ItemStructBody::TupleBody(tuple) => tuple_body_meta(item, enum_item, tuple),
        ast::ItemStructBody::StructBody(st) => {
            struct_body_meta(item, enum_item, storage, source, st)?
        }
    })
}
fn struct_into_item_decl ( item : & Item , body : ast :: ItemStructBody , enum_item : Option < & Item > , storage : & Storage , source : & Source , ) -> Result < CompileMetaKind , QueryError > { Ok ( match body { ast :: ItemStructBody :: UnitBody => unit_body_meta ( item , enum_item ) , ast :: ItemStructBody :: TupleBody ( tuple ) => tuple_body_meta ( item , enum_item , tuple ) , ast :: ItemStructBody :: StructBody ( st ) => { struct_body_meta ( item , enum_item , storage , source , st ) ? } } ) }
Convert an ast declaration into a struct.
Convert an ast declaration into a struct .
item
&Item
body
ast::ItemStructBody
enum_item
Option<&Item>
storage
&Storage
source
&Source
item
&Item
body
ast::ItemStructBody
enum_item
Option<&Item>
storage
&Storage
source
&Source