fn unit_body_meta(item: &Item, enum_item: Option<&Item>) -> CompileMetaKind {
    let type_hash = Hash::type_hash(item);

    let empty = CompileMetaEmpty {
        hash: Hash::type_hash(item),
    };

    match enum_item {
        Some(enum_item) => CompileMetaKind::UnitVariant {
            type_hash,
            enum_item: enum_item.clone(),
            empty,
        },
        None => CompileMetaKind::UnitStruct { type_hash, empty },
    }
}
/// Construct metadata for an empty body.
Construct metadata for an empty body.
Construct metadata for an empty body .
fn unit_body_meta(item: &Item, enum_item: Option<&Item>) -> CompileMetaKind {
    let type_hash = Hash::type_hash(item);
    let empty = CompileMetaEmpty {
        hash: Hash::type_hash(item),
    };
    match enum_item {
        Some(enum_item) => CompileMetaKind::UnitVariant {
            type_hash,
            enum_item: enum_item.clone(),
            empty,
        },
        None => CompileMetaKind::UnitStruct { type_hash, empty },
    }
}
fn unit_body_meta ( item : & Item , enum_item : Option < & Item > ) -> CompileMetaKind { let type_hash = Hash :: type_hash ( item ) ; let empty = CompileMetaEmpty { hash : Hash :: type_hash ( item ) , } ; match enum_item { Some ( enum_item ) => CompileMetaKind :: UnitVariant { type_hash , enum_item : enum_item . clone ( ) , empty , } , None => CompileMetaKind :: UnitStruct { type_hash , empty } , } }
Construct metadata for an empty body.
Construct metadata for an empty body .
item
&Item
enum_item
Option<&Item>
item
&Item
enum_item
Option<&Item>