2020-04-30 17:27:24 -05:00
|
|
|
const QUERY = [
|
|
|
|
'StructItem',
|
|
|
|
'StructFieldItem',
|
|
|
|
'StructMethodItem',
|
|
|
|
'ImplTraitItem',
|
2020-08-11 17:12:49 -05:00
|
|
|
'StructImplConstItem',
|
2020-04-30 17:27:24 -05:00
|
|
|
'ImplTraitFunction',
|
|
|
|
'EnumItem',
|
|
|
|
'VariantItem',
|
|
|
|
'EnumMethodItem',
|
|
|
|
'TypedefItem',
|
|
|
|
'TraitItem',
|
|
|
|
'TraitTypeItem',
|
|
|
|
'AssociatedConstItem',
|
|
|
|
'TraitFunctionItem',
|
|
|
|
'FunctionItem',
|
|
|
|
'ModuleItem',
|
|
|
|
'ConstItem',
|
|
|
|
'StaticItem',
|
|
|
|
'UnionItem',
|
|
|
|
'UnionFieldItem',
|
|
|
|
'UnionMethodItem',
|
|
|
|
'MacroItem',
|
|
|
|
];
|
|
|
|
|
|
|
|
const EXPECTED = [
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// StructItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias',
|
|
|
|
'name': 'Struct',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'StructItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/struct.Struct.html',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// StructFieldItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias::Struct',
|
|
|
|
'name': 'field',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'StructFieldItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/struct.Struct.html#structfield.field',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// StructMethodItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias::Struct',
|
|
|
|
'name': 'method',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'StructMethodItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/struct.Struct.html#method.method',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// ImplTraitItem
|
|
|
|
'others': [],
|
|
|
|
},
|
|
|
|
{
|
2020-08-11 17:12:49 -05:00
|
|
|
// StructImplConstItem
|
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias::Struct',
|
|
|
|
'name': 'ImplConstItem',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'StructImplConstItem',
|
2020-08-11 17:12:49 -05:00
|
|
|
'href': '../doc_alias/struct.Struct.html#associatedconstant.ImplConstItem',
|
|
|
|
'is_alias': true
|
|
|
|
},
|
|
|
|
],
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// ImplTraitFunction
|
2020-05-07 14:42:41 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias::Struct',
|
|
|
|
'name': 'function',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'ImplTraitFunction',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/struct.Struct.html#method.function',
|
|
|
|
'is_alias': true
|
|
|
|
},
|
|
|
|
],
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// EnumItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias',
|
|
|
|
'name': 'Enum',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'EnumItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/enum.Enum.html',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// VariantItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias::Enum',
|
|
|
|
'name': 'Variant',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'VariantItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/enum.Enum.html#variant.Variant',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// EnumMethodItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias::Enum',
|
|
|
|
'name': 'method',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'EnumMethodItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/enum.Enum.html#method.method',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// TypedefItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias',
|
|
|
|
'name': 'Typedef',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'TypedefItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/type.Typedef.html',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// TraitItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias',
|
|
|
|
'name': 'Trait',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'TraitItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/trait.Trait.html',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// TraitTypeItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias::Trait',
|
|
|
|
'name': 'Target',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'TraitTypeItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/trait.Trait.html#associatedtype.Target',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// AssociatedConstItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias::Trait',
|
|
|
|
'name': 'AssociatedConst',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'AssociatedConstItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/trait.Trait.html#associatedconstant.AssociatedConst',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// TraitFunctionItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias::Trait',
|
|
|
|
'name': 'function',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'TraitFunctionItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/trait.Trait.html#tymethod.function',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// FunctionItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias',
|
|
|
|
'name': 'function',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'FunctionItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/fn.function.html',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// ModuleItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias',
|
|
|
|
'name': 'Module',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'ModuleItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/Module/index.html',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// ConstItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias',
|
|
|
|
'name': 'Const',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'ConstItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/constant.Const.html',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
2020-08-11 17:12:49 -05:00
|
|
|
{
|
|
|
|
'path': 'doc_alias::Struct',
|
|
|
|
'name': 'ImplConstItem',
|
|
|
|
},
|
2020-04-30 17:27:24 -05:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// StaticItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias',
|
|
|
|
'name': 'Static',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'StaticItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/static.Static.html',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// UnionItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias',
|
|
|
|
'name': 'Union',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'UnionItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/union.Union.html',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
// Not an alias!
|
|
|
|
{
|
|
|
|
'path': 'doc_alias::Union',
|
|
|
|
'name': 'union_item',
|
|
|
|
'href': '../doc_alias/union.Union.html#structfield.union_item'
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// UnionFieldItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias::Union',
|
|
|
|
'name': 'union_item',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'UnionFieldItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/union.Union.html#structfield.union_item',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// UnionMethodItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias::Union',
|
|
|
|
'name': 'method',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'UnionMethodItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/union.Union.html#method.method',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 13:14:26 -05:00
|
|
|
// MacroItem
|
2020-04-30 17:27:24 -05:00
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'doc_alias',
|
|
|
|
'name': 'Macro',
|
2022-01-04 08:44:00 -06:00
|
|
|
'alias': 'MacroItem',
|
2020-05-07 14:42:41 -05:00
|
|
|
'href': '../doc_alias/macro.Macro.html',
|
|
|
|
'is_alias': true
|
2020-04-30 17:27:24 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|