rust/tests/rustdoc-js/doc-alias.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

291 lines
8.4 KiB
JavaScript
Raw Normal View History

2020-04-30 22:27:24 +00:00
const EXPECTED = [
{
2023-06-09 14:49:38 +00:00
'query': 'StructItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias',
'name': 'Struct',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Struct</code>',
'alias': 'StructItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/struct.Struct.html',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'StructFieldItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias::Struct',
'name': 'field',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Struct</code>s <code>field</code>',
'alias': 'StructFieldItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/struct.Struct.html#structfield.field',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'StructMethodItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias::Struct',
'name': 'method',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Struct::method</code>',
'alias': 'StructMethodItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/struct.Struct.html#method.method',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'ImplTraitItem',
2020-04-30 22:27:24 +00:00
'others': [],
},
{
2023-06-09 14:49:38 +00:00
'query': 'StructImplConstItem',
'others': [
{
'path': 'doc_alias::Struct',
'name': 'ImplConstItem',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Struct::ImplConstItem</code>',
'alias': 'StructImplConstItem',
'href': '../doc_alias/struct.Struct.html#associatedconstant.ImplConstItem',
'is_alias': true
},
],
2020-04-30 22:27:24 +00:00
},
{
2023-06-09 14:49:38 +00:00
'query': 'ImplTraitFunction',
2020-05-07 19:42:41 +00:00
'others': [
{
'path': 'doc_alias::Struct',
'name': 'function',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Trait::function</code> implemented for Struct',
'alias': 'ImplTraitFunction',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/struct.Struct.html#method.function',
'is_alias': true
},
],
2020-04-30 22:27:24 +00:00
},
{
2023-06-09 14:49:38 +00:00
'query': 'EnumItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias',
'name': 'Enum',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Enum</code>',
'alias': 'EnumItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/enum.Enum.html',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'VariantItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias::Enum',
'name': 'Variant',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Enum::Variant</code>',
'alias': 'VariantItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/enum.Enum.html#variant.Variant',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'EnumMethodItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias::Enum',
'name': 'method',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Enum::method</code>',
'alias': 'EnumMethodItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/enum.Enum.html#method.method',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'TypedefItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias',
'name': 'Typedef',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for type alias <code>Typedef</code>',
'alias': 'TypedefItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/type.Typedef.html',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'TraitItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias',
'name': 'Trait',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Trait</code>',
'alias': 'TraitItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/trait.Trait.html',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'TraitTypeItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias::Trait',
'name': 'Target',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Trait::Target</code>',
'alias': 'TraitTypeItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/trait.Trait.html#associatedtype.Target',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'AssociatedConstItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias::Trait',
'name': 'AssociatedConst',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Trait::AssociatedConst</code>',
'alias': 'AssociatedConstItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/trait.Trait.html#associatedconstant.AssociatedConst',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'TraitFunctionItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias::Trait',
'name': 'function',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Trait::function</code>',
'alias': 'TraitFunctionItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/trait.Trait.html#tymethod.function',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'FunctionItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias',
'name': 'function',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>function</code>',
'alias': 'FunctionItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/fn.function.html',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'ModuleItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias',
'name': 'Module',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Module</code>',
'alias': 'ModuleItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/Module/index.html',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'ConstItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias',
'name': 'Const',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Const</code>',
'alias': 'ConstItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/constant.Const.html',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
{
'path': 'doc_alias::Struct',
'name': 'ImplConstItem',
},
2020-04-30 22:27:24 +00:00
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'StaticItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias',
'name': 'Static',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Static</code>',
'alias': 'StaticItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/static.Static.html',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'UnionItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias',
'name': 'Union',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Union</code>',
'alias': 'UnionItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/union.Union.html',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
// Not an alias!
{
'path': 'doc_alias::Union',
'name': 'union_item',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Union::union_item</code>',
2020-04-30 22:27:24 +00:00
'href': '../doc_alias/union.Union.html#structfield.union_item'
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'UnionFieldItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias::Union',
'name': 'union_item',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Union::union_item</code>',
'alias': 'UnionFieldItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/union.Union.html#structfield.union_item',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'UnionMethodItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias::Union',
'name': 'method',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Union::method</code>',
'alias': 'UnionMethodItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/union.Union.html#method.method',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'MacroItem',
2020-04-30 22:27:24 +00:00
'others': [
{
'path': 'doc_alias',
'name': 'Macro',
2024-06-06 21:49:46 +00:00
'desc': 'Doc for <code>Macro</code>',
'alias': 'MacroItem',
2020-05-07 19:42:41 +00:00
'href': '../doc_alias/macro.Macro.html',
'is_alias': true
2020-04-30 22:27:24 +00:00
},
],
},
];