rustdoc-search: show types signatures in results
This commit is contained in:
parent
5973005d93
commit
20a4b4fea1
10 changed files with 995 additions and 126 deletions
|
@ -5,10 +5,22 @@ const EXPECTED = [
|
|||
'query': 'Result<SomeTrait>',
|
||||
'correction': null,
|
||||
'in_args': [
|
||||
{ 'path': 'generics_trait', 'name': 'beta' },
|
||||
{
|
||||
'path': 'generics_trait',
|
||||
'name': 'beta',
|
||||
'displayType': '`Result`<`T`, ()> -> ()',
|
||||
'displayMappedNames': '',
|
||||
'displayWhereClause': 'T: `SomeTrait`',
|
||||
},
|
||||
],
|
||||
'returned': [
|
||||
{ 'path': 'generics_trait', 'name': 'bet' },
|
||||
{
|
||||
'path': 'generics_trait',
|
||||
'name': 'bet',
|
||||
'displayType': ' -> `Result`<`T`, ()>',
|
||||
'displayMappedNames': '',
|
||||
'displayWhereClause': 'T: `SomeTrait`',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -25,20 +37,44 @@ const EXPECTED = [
|
|||
'query': 'OtherThingxxxxxxxx',
|
||||
'correction': null,
|
||||
'in_args': [
|
||||
{ 'path': 'generics_trait', 'name': 'alpha' },
|
||||
{
|
||||
'path': 'generics_trait',
|
||||
'name': 'alpha',
|
||||
'displayType': 'Result<`T`, ()> -> ()',
|
||||
'displayMappedNames': '',
|
||||
'displayWhereClause': 'T: `OtherThingxxxxxxxx`',
|
||||
},
|
||||
],
|
||||
'returned': [
|
||||
{ 'path': 'generics_trait', 'name': 'alef' },
|
||||
{
|
||||
'path': 'generics_trait',
|
||||
'name': 'alef',
|
||||
'displayType': ' -> Result<`T`, ()>',
|
||||
'displayMappedNames': '',
|
||||
'displayWhereClause': 'T: `OtherThingxxxxxxxx`',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
'query': 'OtherThingxxxxxxxy',
|
||||
'correction': 'OtherThingxxxxxxxx',
|
||||
'in_args': [
|
||||
{ 'path': 'generics_trait', 'name': 'alpha' },
|
||||
{
|
||||
'path': 'generics_trait',
|
||||
'name': 'alpha',
|
||||
'displayType': 'Result<`T`, ()> -> ()',
|
||||
'displayMappedNames': '',
|
||||
'displayWhereClause': 'T: `OtherThingxxxxxxxx`',
|
||||
},
|
||||
],
|
||||
'returned': [
|
||||
{ 'path': 'generics_trait', 'name': 'alef' },
|
||||
{
|
||||
'path': 'generics_trait',
|
||||
'name': 'alef',
|
||||
'displayType': ' -> Result<`T`, ()>',
|
||||
'displayMappedNames': '',
|
||||
'displayWhereClause': 'T: `OtherThingxxxxxxxx`',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue