@enjoys/context-engine 1.3.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (593) hide show
  1. package/data/codeActions/angular.json +126 -0
  2. package/data/codeActions/nestjs.json +124 -0
  3. package/data/codeActions/nextjs.json +198 -0
  4. package/data/codeActions/react.json +154 -0
  5. package/data/codeActions/shadcn.json +112 -0
  6. package/data/codeActions/shell.json +169 -26
  7. package/data/codeLens/angular.json +22 -0
  8. package/data/codeLens/awk.json +1 -1
  9. package/data/codeLens/azcli.json +10 -10
  10. package/data/codeLens/c.json +1 -1
  11. package/data/codeLens/caddy.json +1 -1
  12. package/data/codeLens/crontab.json +1 -1
  13. package/data/codeLens/doctest.json +10 -10
  14. package/data/codeLens/hcl.json +1 -1
  15. package/data/codeLens/html.json +1 -1
  16. package/data/codeLens/lua.json +1 -1
  17. package/data/codeLens/nestjs.json +21 -0
  18. package/data/codeLens/nextjs.json +117 -0
  19. package/data/codeLens/nginx.json +1 -1
  20. package/data/codeLens/pla.json +10 -10
  21. package/data/codeLens/react.json +89 -0
  22. package/data/codeLens/shadcn.json +89 -0
  23. package/data/codeLens/shell.json +59 -17
  24. package/data/codeLens/tailwindcss.json +56 -0
  25. package/data/codeLens/xml.json +1 -1
  26. package/data/color/angular.json +21 -0
  27. package/data/color/nestjs.json +18 -0
  28. package/data/color/nextjs.json +22 -0
  29. package/data/color/react.json +93 -0
  30. package/data/color/shadcn.json +66 -0
  31. package/data/color/shell.json +106 -80
  32. package/data/commands/angular.json +670 -0
  33. package/data/commands/c.json +30 -30
  34. package/data/commands/cpp.json +30 -30
  35. package/data/commands/crontab.json +25 -30
  36. package/data/commands/cypher.json +26 -30
  37. package/data/commands/dockerfile.json +26 -2
  38. package/data/commands/doctest.json +23 -24
  39. package/data/commands/dotenv.json +24 -11
  40. package/data/commands/ecl.json +26 -30
  41. package/data/commands/flow9.json +24 -24
  42. package/data/commands/freemarker2.json +24 -18
  43. package/data/commands/graphql.json +25 -11
  44. package/data/commands/html.json +25 -11
  45. package/data/commands/ini.json +26 -12
  46. package/data/commands/javascript.json +29 -30
  47. package/data/commands/less.json +25 -29
  48. package/data/commands/lexon.json +23 -11
  49. package/data/commands/liquid.json +26 -11
  50. package/data/commands/m3.json +26 -12
  51. package/data/commands/manifest.json +35 -726
  52. package/data/commands/markdown.json +26 -12
  53. package/data/commands/mdx.json +23 -10
  54. package/data/commands/mips.json +26 -18
  55. package/data/commands/msdax.json +23 -11
  56. package/data/commands/nestjs.json +516 -0
  57. package/data/commands/nextjs.json +250 -0
  58. package/data/commands/objective-c.json +26 -24
  59. package/data/commands/pascal.json +27 -24
  60. package/data/commands/pascaligo.json +26 -24
  61. package/data/commands/perl.json +30 -30
  62. package/data/commands/pla.json +23 -11
  63. package/data/commands/postiats.json +26 -24
  64. package/data/commands/powerquery.json +23 -11
  65. package/data/commands/powershell.json +28 -30
  66. package/data/commands/protobuf.json +27 -30
  67. package/data/commands/qsharp.json +26 -30
  68. package/data/commands/razor.json +25 -29
  69. package/data/commands/react.json +244 -0
  70. package/data/commands/redshift.json +27 -18
  71. package/data/commands/restructuredtext.json +29 -30
  72. package/data/commands/sb.json +23 -11
  73. package/data/commands/scheme.json +25 -18
  74. package/data/commands/scss.json +26 -29
  75. package/data/commands/shadcn.json +564 -0
  76. package/data/commands/shell.json +571 -41
  77. package/data/commands/sol.json +27 -30
  78. package/data/commands/sparql.json +25 -11
  79. package/data/commands/sql.json +16 -2
  80. package/data/commands/ssh_config.json +31 -30
  81. package/data/commands/st.json +23 -11
  82. package/data/commands/systemverilog.json +26 -24
  83. package/data/commands/tailwindcss.json +60 -53
  84. package/data/commands/tcl.json +23 -18
  85. package/data/commands/toml.json +25 -11
  86. package/data/commands/twig.json +23 -10
  87. package/data/commands/vb.json +27 -24
  88. package/data/commands/wgsl.json +24 -11
  89. package/data/commands/yaml.json +29 -30
  90. package/data/completion/angular.json +1490 -0
  91. package/data/completion/awk.json +906 -202
  92. package/data/completion/azcli.json +886 -237
  93. package/data/completion/bicep.json +862 -367
  94. package/data/completion/crontab.json +906 -202
  95. package/data/completion/css.json +793 -0
  96. package/data/completion/dotenv.json +895 -169
  97. package/data/completion/graphql.json +895 -180
  98. package/data/completion/hcl.json +906 -191
  99. package/data/completion/ini.json +906 -136
  100. package/data/completion/json.json +895 -169
  101. package/data/completion/lexon.json +856 -295
  102. package/data/completion/makefile.json +906 -202
  103. package/data/completion/markdown.json +906 -224
  104. package/data/completion/mdx.json +895 -87
  105. package/data/completion/mips.json +872 -377
  106. package/data/completion/nestjs.json +1454 -0
  107. package/data/completion/nextjs.json +1373 -0
  108. package/data/completion/perl.json +961 -202
  109. package/data/completion/pla.json +895 -154
  110. package/data/completion/powershell.json +906 -224
  111. package/data/completion/protobuf.json +884 -180
  112. package/data/completion/react.json +1319 -0
  113. package/data/completion/shadcn.json +1202 -0
  114. package/data/completion/shell.json +2446 -510
  115. package/data/completion/ssh_config.json +906 -158
  116. package/data/completion/xml.json +906 -158
  117. package/data/declaration/angular.json +46 -0
  118. package/data/declaration/nestjs.json +47 -0
  119. package/data/declaration/nextjs.json +274 -0
  120. package/data/declaration/react.json +199 -0
  121. package/data/declaration/shadcn.json +211 -0
  122. package/data/declaration/shell.json +343 -24
  123. package/data/declaration/tailwindcss.json +72 -0
  124. package/data/definition/abap.json +127 -1
  125. package/data/definition/angular.json +670 -0
  126. package/data/definition/apex.json +97 -1
  127. package/data/definition/coffee.json +51 -1
  128. package/data/definition/dart.json +105 -1
  129. package/data/definition/elixir.json +115 -1
  130. package/data/definition/flow9.json +208 -1
  131. package/data/definition/freemarker2.json +283 -1
  132. package/data/definition/html.json +853 -558
  133. package/data/definition/java.json +1127 -183
  134. package/data/definition/kotlin.json +72 -1
  135. package/data/definition/nestjs.json +684 -0
  136. package/data/definition/nextjs.json +439 -0
  137. package/data/definition/r.json +692 -83
  138. package/data/definition/react.json +397 -0
  139. package/data/definition/ruby.json +789 -669
  140. package/data/definition/rust.json +852 -206
  141. package/data/definition/sb.json +339 -1
  142. package/data/definition/shadcn.json +99 -0
  143. package/data/definition/shell.json +820 -0
  144. package/data/definition/st.json +367 -1
  145. package/data/documentHighlight/angular.json +414 -0
  146. package/data/documentHighlight/css.json +77 -2
  147. package/data/documentHighlight/nestjs.json +115 -0
  148. package/data/documentHighlight/nextjs.json +212 -0
  149. package/data/documentHighlight/react.json +119 -0
  150. package/data/documentHighlight/shadcn.json +168 -0
  151. package/data/documentHighlight/shell.json +664 -334
  152. package/data/documentHighlight/tailwindcss.json +105 -10
  153. package/data/documentRangeFormatting/angular.json +45 -0
  154. package/data/documentRangeFormatting/nestjs.json +57 -0
  155. package/data/documentRangeFormatting/nextjs.json +57 -0
  156. package/data/documentRangeFormatting/react.json +82 -0
  157. package/data/documentRangeFormatting/shadcn.json +45 -0
  158. package/data/documentRangeFormatting/shell.json +120 -53
  159. package/data/documentSymbol/abap.json +54 -12
  160. package/data/documentSymbol/angular.json +180 -0
  161. package/data/documentSymbol/apex.json +40 -10
  162. package/data/documentSymbol/awk.json +15 -1
  163. package/data/documentSymbol/bicep.json +39 -39
  164. package/data/documentSymbol/c.json +1 -1
  165. package/data/documentSymbol/clojure.json +46 -46
  166. package/data/documentSymbol/css.json +96 -96
  167. package/data/documentSymbol/dart.json +109 -19
  168. package/data/documentSymbol/dockerfile.json +1 -1
  169. package/data/documentSymbol/elixir.json +39 -39
  170. package/data/documentSymbol/go.json +1 -1
  171. package/data/documentSymbol/graphql.json +1 -1
  172. package/data/documentSymbol/hcl.json +1 -1
  173. package/data/documentSymbol/html.json +29 -1
  174. package/data/documentSymbol/java.json +1 -1
  175. package/data/documentSymbol/javascript.json +1 -1
  176. package/data/documentSymbol/julia.json +46 -46
  177. package/data/documentSymbol/kotlin.json +74 -14
  178. package/data/documentSymbol/less.json +25 -25
  179. package/data/documentSymbol/lua.json +22 -1
  180. package/data/documentSymbol/makefile.json +15 -1
  181. package/data/documentSymbol/markdown.json +36 -1
  182. package/data/documentSymbol/mysql.json +32 -32
  183. package/data/documentSymbol/nestjs.json +152 -0
  184. package/data/documentSymbol/nextjs.json +159 -0
  185. package/data/documentSymbol/nginx.json +1 -1
  186. package/data/documentSymbol/pascal.json +46 -46
  187. package/data/documentSymbol/perl.json +1 -1
  188. package/data/documentSymbol/pgsql.json +39 -39
  189. package/data/documentSymbol/php.json +1 -1
  190. package/data/documentSymbol/powershell.json +1 -1
  191. package/data/documentSymbol/protobuf.json +1 -1
  192. package/data/documentSymbol/python.json +1 -1
  193. package/data/documentSymbol/r.json +67 -67
  194. package/data/documentSymbol/react.json +145 -0
  195. package/data/documentSymbol/redshift.json +60 -18
  196. package/data/documentSymbol/ruby.json +1 -1
  197. package/data/documentSymbol/rust.json +1 -1
  198. package/data/documentSymbol/scala.json +116 -20
  199. package/data/documentSymbol/scheme.json +25 -25
  200. package/data/documentSymbol/scss.json +39 -39
  201. package/data/documentSymbol/shadcn.json +131 -0
  202. package/data/documentSymbol/shell.json +165 -25
  203. package/data/documentSymbol/sql.json +1 -1
  204. package/data/documentSymbol/swift.json +88 -16
  205. package/data/documentSymbol/tailwindcss.json +49 -0
  206. package/data/documentSymbol/typescript.json +1 -1
  207. package/data/documentSymbol/vb.json +53 -53
  208. package/data/documentSymbol/yaml.json +1 -1
  209. package/data/foldingRange/angular.json +100 -0
  210. package/data/foldingRange/nestjs.json +94 -0
  211. package/data/foldingRange/nextjs.json +94 -0
  212. package/data/foldingRange/react.json +118 -0
  213. package/data/foldingRange/shadcn.json +94 -0
  214. package/data/foldingRange/shell.json +106 -46
  215. package/data/formatting/abap.json +19 -11
  216. package/data/formatting/angular.json +63 -0
  217. package/data/formatting/apex.json +19 -11
  218. package/data/formatting/awk.json +1 -1
  219. package/data/formatting/azcli.json +18 -18
  220. package/data/formatting/bicep.json +18 -18
  221. package/data/formatting/c.json +1 -1
  222. package/data/formatting/caddy.json +1 -1
  223. package/data/formatting/cameligo.json +18 -18
  224. package/data/formatting/clojure.json +18 -18
  225. package/data/formatting/coffee.json +18 -18
  226. package/data/formatting/cpp.json +1 -1
  227. package/data/formatting/crontab.json +1 -1
  228. package/data/formatting/csharp.json +1 -1
  229. package/data/formatting/css.json +73 -73
  230. package/data/formatting/cypher.json +18 -18
  231. package/data/formatting/dart.json +43 -15
  232. package/data/formatting/docker-compose.json +24 -24
  233. package/data/formatting/dockerfile.json +1 -1
  234. package/data/formatting/doctest.json +18 -18
  235. package/data/formatting/dotenv.json +1 -1
  236. package/data/formatting/ecl.json +18 -18
  237. package/data/formatting/elixir.json +43 -18
  238. package/data/formatting/flow9.json +18 -18
  239. package/data/formatting/freemarker2.json +18 -18
  240. package/data/formatting/go.json +1 -1
  241. package/data/formatting/graphql.json +1 -1
  242. package/data/formatting/hcl.json +26 -1
  243. package/data/formatting/html.json +26 -1
  244. package/data/formatting/ini.json +1 -1
  245. package/data/formatting/java.json +1 -1
  246. package/data/formatting/javascript.json +1 -1
  247. package/data/formatting/julia.json +18 -18
  248. package/data/formatting/kotlin.json +33 -13
  249. package/data/formatting/less.json +48 -18
  250. package/data/formatting/lexon.json +18 -18
  251. package/data/formatting/liquid.json +18 -18
  252. package/data/formatting/lua.json +1 -1
  253. package/data/formatting/m3.json +18 -18
  254. package/data/formatting/makefile.json +1 -1
  255. package/data/formatting/markdown.json +26 -1
  256. package/data/formatting/mdx.json +18 -18
  257. package/data/formatting/mips.json +18 -18
  258. package/data/formatting/msdax.json +18 -18
  259. package/data/formatting/mysql.json +43 -18
  260. package/data/formatting/nestjs.json +23 -0
  261. package/data/formatting/nextjs.json +23 -0
  262. package/data/formatting/nginx.json +1 -1
  263. package/data/formatting/objective-c.json +18 -18
  264. package/data/formatting/pascal.json +18 -18
  265. package/data/formatting/pascaligo.json +18 -18
  266. package/data/formatting/perl.json +1 -1
  267. package/data/formatting/pgsql.json +43 -18
  268. package/data/formatting/php.json +1 -1
  269. package/data/formatting/pla.json +18 -18
  270. package/data/formatting/postiats.json +18 -18
  271. package/data/formatting/powerquery.json +18 -18
  272. package/data/formatting/powershell.json +1 -1
  273. package/data/formatting/protobuf.json +1 -1
  274. package/data/formatting/python.json +1 -1
  275. package/data/formatting/qsharp.json +18 -18
  276. package/data/formatting/r.json +32 -32
  277. package/data/formatting/razor.json +18 -18
  278. package/data/formatting/react.json +71 -0
  279. package/data/formatting/redis-cli.json +1 -1
  280. package/data/formatting/redis.json +18 -18
  281. package/data/formatting/redshift.json +43 -18
  282. package/data/formatting/restructuredtext.json +18 -18
  283. package/data/formatting/ruby.json +1 -1
  284. package/data/formatting/rust.json +1 -1
  285. package/data/formatting/sb.json +18 -18
  286. package/data/formatting/scala.json +48 -16
  287. package/data/formatting/scheme.json +18 -18
  288. package/data/formatting/scss.json +48 -18
  289. package/data/formatting/shadcn.json +63 -0
  290. package/data/formatting/shell.json +102 -18
  291. package/data/formatting/sol.json +18 -18
  292. package/data/formatting/sparql.json +18 -18
  293. package/data/formatting/sql.json +1 -1
  294. package/data/formatting/ssh_config.json +1 -1
  295. package/data/formatting/st.json +18 -18
  296. package/data/formatting/swift.json +58 -18
  297. package/data/formatting/systemd.json +1 -1
  298. package/data/formatting/systemverilog.json +18 -18
  299. package/data/formatting/tcl.json +18 -18
  300. package/data/formatting/toml.json +1 -1
  301. package/data/formatting/twig.json +18 -18
  302. package/data/formatting/typescript.json +1 -1
  303. package/data/formatting/vb.json +18 -18
  304. package/data/formatting/wgsl.json +18 -18
  305. package/data/formatting/xml.json +26 -1
  306. package/data/formatting/yaml.json +1 -1
  307. package/data/hover/angular.json +455 -0
  308. package/data/hover/apex.json +281 -6
  309. package/data/hover/awk.json +251 -6
  310. package/data/hover/crontab.json +251 -6
  311. package/data/hover/css.json +232 -0
  312. package/data/hover/dotenv.json +242 -4
  313. package/data/hover/graphql.json +251 -6
  314. package/data/hover/lexon.json +250 -5
  315. package/data/hover/markdown.json +226 -9
  316. package/data/hover/mdx.json +250 -5
  317. package/data/hover/nestjs.json +296 -0
  318. package/data/hover/nextjs.json +305 -0
  319. package/data/hover/perl.json +251 -6
  320. package/data/hover/pla.json +264 -5
  321. package/data/hover/powershell.json +252 -7
  322. package/data/hover/protobuf.json +251 -6
  323. package/data/hover/react.json +173 -0
  324. package/data/hover/redis.json +355 -40
  325. package/data/hover/shadcn.json +450 -0
  326. package/data/hover/shell.json +684 -75
  327. package/data/hover/ssh_config.json +251 -6
  328. package/data/hover/xml.json +231 -7
  329. package/data/implementation/angular.json +22 -0
  330. package/data/implementation/nestjs.json +24 -0
  331. package/data/implementation/nextjs.json +137 -0
  332. package/data/implementation/react.json +125 -0
  333. package/data/implementation/shadcn.json +89 -0
  334. package/data/implementation/shell.json +59 -3
  335. package/data/inlayHints/angular.json +24 -0
  336. package/data/inlayHints/nestjs.json +24 -0
  337. package/data/inlayHints/nextjs.json +143 -0
  338. package/data/inlayHints/react.json +177 -0
  339. package/data/inlayHints/shadcn.json +109 -0
  340. package/data/inlayHints/shell.json +223 -35
  341. package/data/inlineCompletions/angular.json +135 -0
  342. package/data/inlineCompletions/c.json +49 -1
  343. package/data/inlineCompletions/cpp.json +61 -1
  344. package/data/inlineCompletions/csharp.json +73 -1
  345. package/data/inlineCompletions/css.json +125 -125
  346. package/data/inlineCompletions/dart.json +136 -26
  347. package/data/inlineCompletions/elixir.json +34 -34
  348. package/data/inlineCompletions/go.json +67 -1
  349. package/data/inlineCompletions/html.json +1 -1
  350. package/data/inlineCompletions/java.json +67 -1
  351. package/data/inlineCompletions/javascript.json +97 -1
  352. package/data/inlineCompletions/kotlin.json +88 -18
  353. package/data/inlineCompletions/less.json +76 -28
  354. package/data/inlineCompletions/lua.json +37 -1
  355. package/data/inlineCompletions/mysql.json +34 -34
  356. package/data/inlineCompletions/nestjs.json +25 -0
  357. package/data/inlineCompletions/nextjs.json +179 -0
  358. package/data/inlineCompletions/pgsql.json +34 -34
  359. package/data/inlineCompletions/php.json +43 -1
  360. package/data/inlineCompletions/python.json +73 -1
  361. package/data/inlineCompletions/react.json +203 -0
  362. package/data/inlineCompletions/ruby.json +49 -1
  363. package/data/inlineCompletions/rust.json +61 -1
  364. package/data/inlineCompletions/scala.json +130 -25
  365. package/data/inlineCompletions/scss.json +34 -34
  366. package/data/inlineCompletions/shadcn.json +115 -0
  367. package/data/inlineCompletions/shell.json +184 -34
  368. package/data/inlineCompletions/sql.json +43 -1
  369. package/data/inlineCompletions/swift.json +112 -22
  370. package/data/inlineCompletions/typescript.json +97 -1
  371. package/data/linkedEditingRange/angular.json +23 -0
  372. package/data/linkedEditingRange/azcli.json +6 -6
  373. package/data/linkedEditingRange/crontab.json +6 -6
  374. package/data/linkedEditingRange/docker-compose.json +6 -6
  375. package/data/linkedEditingRange/doctest.json +6 -6
  376. package/data/linkedEditingRange/dotenv.json +13 -6
  377. package/data/linkedEditingRange/ini.json +13 -6
  378. package/data/linkedEditingRange/json.json +13 -6
  379. package/data/linkedEditingRange/lexon.json +6 -6
  380. package/data/linkedEditingRange/mips.json +6 -6
  381. package/data/linkedEditingRange/msdax.json +6 -6
  382. package/data/linkedEditingRange/nestjs.json +18 -0
  383. package/data/linkedEditingRange/nextjs.json +24 -0
  384. package/data/linkedEditingRange/pla.json +6 -6
  385. package/data/linkedEditingRange/react.json +74 -0
  386. package/data/linkedEditingRange/redis-cli.json +6 -6
  387. package/data/linkedEditingRange/redis.json +6 -6
  388. package/data/linkedEditingRange/shadcn.json +23 -0
  389. package/data/linkedEditingRange/shell.json +25 -25
  390. package/data/linkedEditingRange/ssh_config.json +6 -6
  391. package/data/linkedEditingRange/systemd.json +6 -6
  392. package/data/linkedEditingRange/toml.json +13 -6
  393. package/data/linkedEditingRange/wgsl.json +6 -6
  394. package/data/linkedEditingRange/xml.json +13 -13
  395. package/data/linkedEditingRange/yaml.json +13 -6
  396. package/data/links/angular.json +95 -0
  397. package/data/links/nestjs.json +130 -0
  398. package/data/links/nextjs.json +91 -0
  399. package/data/links/react.json +75 -0
  400. package/data/links/shadcn.json +98 -0
  401. package/data/links/shell.json +56 -0
  402. package/data/links/tailwindcss.json +25 -0
  403. package/data/manifest.json +339 -152
  404. package/data/onTypeFormatting/angular.json +63 -0
  405. package/data/onTypeFormatting/nestjs.json +64 -0
  406. package/data/onTypeFormatting/nextjs.json +72 -0
  407. package/data/onTypeFormatting/react.json +148 -0
  408. package/data/onTypeFormatting/shadcn.json +63 -0
  409. package/data/onTypeFormatting/shell.json +72 -68
  410. package/data/rangeSemanticTokens/angular.json +196 -0
  411. package/data/rangeSemanticTokens/nestjs.json +195 -0
  412. package/data/rangeSemanticTokens/nextjs.json +199 -0
  413. package/data/rangeSemanticTokens/react.json +77 -0
  414. package/data/rangeSemanticTokens/shadcn.json +203 -0
  415. package/data/rangeSemanticTokens/shell.json +247 -69
  416. package/data/rangeSemanticTokens/tailwindcss.json +99 -8
  417. package/data/references/angular.json +26 -0
  418. package/data/references/nestjs.json +24 -0
  419. package/data/references/nextjs.json +178 -0
  420. package/data/references/react.json +192 -0
  421. package/data/references/shadcn.json +101 -0
  422. package/data/references/shell.json +323 -92
  423. package/data/references/tailwindcss.json +66 -0
  424. package/data/rename/angular.json +121 -0
  425. package/data/rename/nestjs.json +122 -0
  426. package/data/rename/nextjs.json +116 -0
  427. package/data/rename/react.json +133 -0
  428. package/data/rename/shadcn.json +73 -0
  429. package/data/rename/shell.json +101 -31
  430. package/data/selectionRange/abap.json +58 -34
  431. package/data/selectionRange/angular.json +126 -0
  432. package/data/selectionRange/apex.json +58 -34
  433. package/data/selectionRange/awk.json +56 -34
  434. package/data/selectionRange/azcli.json +43 -24
  435. package/data/selectionRange/bicep.json +56 -34
  436. package/data/selectionRange/c.json +62 -39
  437. package/data/selectionRange/caddy.json +53 -34
  438. package/data/selectionRange/cameligo.json +56 -34
  439. package/data/selectionRange/clojure.json +57 -34
  440. package/data/selectionRange/coffee.json +59 -34
  441. package/data/selectionRange/cpp.json +73 -44
  442. package/data/selectionRange/crontab.json +39 -29
  443. package/data/selectionRange/csharp.json +69 -39
  444. package/data/selectionRange/css.json +95 -55
  445. package/data/selectionRange/cypher.json +57 -34
  446. package/data/selectionRange/dart.json +65 -34
  447. package/data/selectionRange/docker-compose.json +54 -34
  448. package/data/selectionRange/dockerfile.json +56 -34
  449. package/data/selectionRange/doctest.json +47 -24
  450. package/data/selectionRange/dotenv.json +33 -24
  451. package/data/selectionRange/ecl.json +58 -34
  452. package/data/selectionRange/elixir.json +63 -34
  453. package/data/selectionRange/flow9.json +57 -34
  454. package/data/selectionRange/freemarker2.json +58 -34
  455. package/data/selectionRange/go.json +64 -39
  456. package/data/selectionRange/graphql.json +58 -34
  457. package/data/selectionRange/hcl.json +56 -34
  458. package/data/selectionRange/html.json +63 -34
  459. package/data/selectionRange/ini.json +38 -24
  460. package/data/selectionRange/java.json +68 -39
  461. package/data/selectionRange/javascript.json +65 -39
  462. package/data/selectionRange/julia.json +65 -39
  463. package/data/selectionRange/kotlin.json +68 -39
  464. package/data/selectionRange/less.json +58 -34
  465. package/data/selectionRange/lexon.json +38 -24
  466. package/data/selectionRange/liquid.json +58 -34
  467. package/data/selectionRange/lua.json +59 -34
  468. package/data/selectionRange/m3.json +57 -34
  469. package/data/selectionRange/makefile.json +53 -34
  470. package/data/selectionRange/markdown.json +57 -34
  471. package/data/selectionRange/mdx.json +63 -34
  472. package/data/selectionRange/mips.json +43 -29
  473. package/data/selectionRange/msdax.json +52 -34
  474. package/data/selectionRange/mysql.json +51 -34
  475. package/data/selectionRange/nestjs.json +35 -0
  476. package/data/selectionRange/nextjs.json +35 -0
  477. package/data/selectionRange/nginx.json +53 -34
  478. package/data/selectionRange/objective-c.json +64 -39
  479. package/data/selectionRange/pascal.json +53 -34
  480. package/data/selectionRange/pascaligo.json +57 -34
  481. package/data/selectionRange/perl.json +59 -34
  482. package/data/selectionRange/pgsql.json +50 -34
  483. package/data/selectionRange/php.json +65 -39
  484. package/data/selectionRange/pla.json +52 -29
  485. package/data/selectionRange/postiats.json +61 -34
  486. package/data/selectionRange/powerquery.json +56 -34
  487. package/data/selectionRange/powershell.json +65 -39
  488. package/data/selectionRange/protobuf.json +58 -34
  489. package/data/selectionRange/python.json +66 -39
  490. package/data/selectionRange/qsharp.json +62 -39
  491. package/data/selectionRange/r.json +57 -34
  492. package/data/selectionRange/razor.json +63 -34
  493. package/data/selectionRange/react.json +103 -0
  494. package/data/selectionRange/redis-cli.json +38 -24
  495. package/data/selectionRange/redis.json +38 -24
  496. package/data/selectionRange/redshift.json +49 -34
  497. package/data/selectionRange/restructuredtext.json +58 -34
  498. package/data/selectionRange/ruby.json +65 -39
  499. package/data/selectionRange/rust.json +73 -44
  500. package/data/selectionRange/sb.json +43 -29
  501. package/data/selectionRange/scala.json +65 -39
  502. package/data/selectionRange/scheme.json +52 -34
  503. package/data/selectionRange/scss.json +58 -34
  504. package/data/selectionRange/shadcn.json +120 -0
  505. package/data/selectionRange/shell.json +64 -34
  506. package/data/selectionRange/sol.json +63 -39
  507. package/data/selectionRange/sparql.json +58 -34
  508. package/data/selectionRange/sql.json +50 -34
  509. package/data/selectionRange/ssh_config.json +37 -29
  510. package/data/selectionRange/st.json +49 -29
  511. package/data/selectionRange/swift.json +73 -44
  512. package/data/selectionRange/systemd.json +47 -34
  513. package/data/selectionRange/systemverilog.json +62 -39
  514. package/data/selectionRange/tailwindcss.json +49 -34
  515. package/data/selectionRange/tcl.json +57 -34
  516. package/data/selectionRange/toml.json +49 -29
  517. package/data/selectionRange/twig.json +58 -34
  518. package/data/selectionRange/typescript.json +75 -44
  519. package/data/selectionRange/vb.json +59 -39
  520. package/data/selectionRange/wgsl.json +61 -34
  521. package/data/selectionRange/xml.json +51 -34
  522. package/data/selectionRange/yaml.json +54 -34
  523. package/data/semanticTokens/angular.json +269 -0
  524. package/data/semanticTokens/nestjs.json +245 -0
  525. package/data/semanticTokens/nextjs.json +265 -0
  526. package/data/semanticTokens/react.json +230 -0
  527. package/data/semanticTokens/shadcn.json +235 -0
  528. package/data/semanticTokens/shell.json +238 -65
  529. package/data/signatureHelp/angular.json +182 -0
  530. package/data/signatureHelp/nestjs.json +201 -0
  531. package/data/signatureHelp/nextjs.json +185 -0
  532. package/data/signatureHelp/react.json +285 -0
  533. package/data/signatureHelp/shadcn.json +237 -0
  534. package/data/signatureHelp/shell.json +797 -104
  535. package/data/typeDefinition/angular.json +362 -0
  536. package/data/typeDefinition/nestjs.json +334 -0
  537. package/data/typeDefinition/nextjs.json +285 -0
  538. package/data/typeDefinition/react.json +236 -0
  539. package/data/typeDefinition/shadcn.json +292 -0
  540. package/data/typeDefinition/shell.json +104 -40
  541. package/package.json +1 -1
  542. package/data/codeActions/bash.json +0 -169
  543. package/data/codeActions/zsh.json +0 -49
  544. package/data/codeLens/bash.json +0 -75
  545. package/data/codeLens/zsh.json +0 -19
  546. package/data/color/bash.json +0 -100
  547. package/data/color/zsh.json +0 -80
  548. package/data/commands/bash.json +0 -102
  549. package/data/commands/zsh.json +0 -166
  550. package/data/completion/bash.json +0 -1184
  551. package/data/completion/zsh.json +0 -973
  552. package/data/declaration/bash.json +0 -301
  553. package/data/declaration/zsh.json +0 -205
  554. package/data/definition/bash.json +0 -565
  555. package/data/definition/zsh.json +0 -350
  556. package/data/documentHighlight/bash.json +0 -393
  557. package/data/documentHighlight/zsh.json +0 -266
  558. package/data/documentRangeFormatting/bash.json +0 -41
  559. package/data/documentRangeFormatting/zsh.json +0 -59
  560. package/data/documentSymbol/bash.json +0 -124
  561. package/data/documentSymbol/zsh.json +0 -26
  562. package/data/foldingRange/bash.json +0 -76
  563. package/data/foldingRange/zsh.json +0 -46
  564. package/data/formatting/bash.json +0 -88
  565. package/data/formatting/zsh.json +0 -28
  566. package/data/hover/bash.json +0 -579
  567. package/data/hover/zsh.json +0 -96
  568. package/data/implementation/bash.json +0 -44
  569. package/data/implementation/zsh.json +0 -41
  570. package/data/inlayHints/bash.json +0 -207
  571. package/data/inlayHints/zsh.json +0 -43
  572. package/data/inlineCompletions/bash.json +0 -155
  573. package/data/inlineCompletions/zsh.json +0 -17
  574. package/data/linkedEditingRange/bash.json +0 -25
  575. package/data/linkedEditingRange/zsh.json +0 -25
  576. package/data/links/bash.json +0 -56
  577. package/data/links/zsh.json +0 -15
  578. package/data/onTypeFormatting/bash.json +0 -68
  579. package/data/onTypeFormatting/zsh.json +0 -68
  580. package/data/rangeSemanticTokens/bash.json +0 -90
  581. package/data/rangeSemanticTokens/zsh.json +0 -76
  582. package/data/references/bash.json +0 -221
  583. package/data/references/zsh.json +0 -166
  584. package/data/rename/bash.json +0 -37
  585. package/data/rename/zsh.json +0 -31
  586. package/data/selectionRange/bash.json +0 -35
  587. package/data/selectionRange/zsh.json +0 -35
  588. package/data/semanticTokens/bash.json +0 -71
  589. package/data/semanticTokens/zsh.json +0 -71
  590. package/data/signatureHelp/bash.json +0 -111
  591. package/data/signatureHelp/zsh.json +0 -118
  592. package/data/typeDefinition/bash.json +0 -95
  593. package/data/typeDefinition/zsh.json +0 -40
@@ -1,207 +1,853 @@
1
- {
2
- "language": "rust",
3
- "definitions": {
4
- "String": {
5
- "signature": "pub struct String",
6
- "description": "A UTF-8–encoded, growable string. The most common string type in Rust, owning its contents.",
7
- "type": "struct",
8
- "module": "std::string",
9
- "members": {
10
- "new": { "signature": "pub const fn new() -> String", "description": "Creates a new empty `String`.", "type": "method" },
11
- "from": { "signature": "pub fn from(s: &str) -> String", "description": "Converts a `&str` into a `String`.", "type": "method" },
12
- "push": { "signature": "pub fn push(&mut self, ch: char)", "description": "Appends the given `char` to the end of this `String`.", "type": "method" },
13
- "push_str": { "signature": "pub fn push_str(&mut self, string: &str)", "description": "Appends a given string slice onto the end of this `String`.", "type": "method" },
14
- "len": { "signature": "pub fn len(&self) -> usize", "description": "Returns the length of this `String`, in bytes, not `char`s or graphemes.", "type": "method" },
15
- "is_empty": { "signature": "pub fn is_empty(&self) -> bool", "description": "Returns `true` if this `String` has a length of zero.", "type": "method" },
16
- "capacity": { "signature": "pub fn capacity(&self) -> usize", "description": "Returns this `String`'s capacity, in bytes.", "type": "method" },
17
- "contains": { "signature": "pub fn contains<'a, P: Pattern<'a>>(&'a self, pat: P) -> bool", "description": "Returns `true` if the given pattern matches a sub-slice of this string slice.", "type": "method" },
18
- "replace": { "signature": "pub fn replace<'a, P: Pattern<'a>>(&'a self, from: P, to: &str) -> String", "description": "Replaces all matches of a pattern with another string.", "type": "method" },
19
- "trim": { "signature": "pub fn trim(&self) -> &str", "description": "Returns a string slice with leading and trailing whitespace removed.", "type": "method" },
20
- "to_uppercase": { "signature": "pub fn to_uppercase(&self) -> String", "description": "Returns the uppercase equivalent of this string slice, as a new `String`.", "type": "method" },
21
- "to_lowercase": { "signature": "pub fn to_lowercase(&self) -> String", "description": "Returns the lowercase equivalent of this string slice, as a new `String`.", "type": "method" },
22
- "as_str": { "signature": "pub fn as_str(&self) -> &str", "description": "Extracts a string slice containing the entire `String`.", "type": "method" },
23
- "as_bytes": { "signature": "pub fn as_bytes(&self) -> &[u8]", "description": "Returns a byte slice of this `String`'s contents.", "type": "method" },
24
- "chars": { "signature": "pub fn chars(&self) -> Chars<'_>", "description": "Returns an iterator over the `char`s of this string slice.", "type": "method" },
25
- "split": { "signature": "pub fn split<'a, P: Pattern<'a>>(&'a self, pat: P) -> Split<'a, P>", "description": "Returns an iterator over substrings of this string slice, separated by a pattern.", "type": "method" },
26
- "starts_with": { "signature": "pub fn starts_with<'a, P: Pattern<'a>>(&'a self, pat: P) -> bool", "description": "Returns `true` if the given pattern matches a prefix of this string slice.", "type": "method" },
27
- "ends_with": { "signature": "pub fn ends_with<'a, P: Pattern<'a>>(&'a self, pat: P) -> bool", "description": "Returns `true` if the given pattern matches a suffix of this string slice.", "type": "method" },
28
- "into_bytes": { "signature": "pub fn into_bytes(self) -> Vec<u8>", "description": "Converts this `String` into a byte vector, consuming the string.", "type": "method" }
29
- }
30
- },
31
- "Vec": {
32
- "signature": "pub struct Vec<T>",
33
- "description": "A contiguous growable array type. Provides O(1) indexed access, amortized O(1) push to the end, and O(n) insert and removal.",
34
- "type": "struct",
35
- "module": "std::vec",
36
- "members": {
37
- "new": { "signature": "pub const fn new() -> Vec<T>", "description": "Constructs a new, empty `Vec<T>`. Does not allocate until elements are pushed.", "type": "method" },
38
- "with_capacity": { "signature": "pub fn with_capacity(capacity: usize) -> Vec<T>", "description": "Constructs a new, empty `Vec<T>` with at least the specified capacity.", "type": "method" },
39
- "push": { "signature": "pub fn push(&mut self, value: T)", "description": "Appends an element to the back of the collection.", "type": "method" },
40
- "pop": { "signature": "pub fn pop(&mut self) -> Option<T>", "description": "Removes the last element from the vector and returns it, or `None` if empty.", "type": "method" },
41
- "len": { "signature": "pub fn len(&self) -> usize", "description": "Returns the number of elements in the vector.", "type": "method" },
42
- "is_empty": { "signature": "pub fn is_empty(&self) -> bool", "description": "Returns `true` if the vector contains no elements.", "type": "method" },
43
- "contains": { "signature": "pub fn contains(&self, x: &T) -> bool where T: PartialEq", "description": "Returns `true` if the slice contains an element with the given value.", "type": "method" },
44
- "iter": { "signature": "pub fn iter(&self) -> Iter<'_, T>", "description": "Returns an iterator over the slice.", "type": "method" },
45
- "iter_mut": { "signature": "pub fn iter_mut(&mut self) -> IterMut<'_, T>", "description": "Returns a mutable iterator over the slice.", "type": "method" },
46
- "sort": { "signature": "pub fn sort(&mut self) where T: Ord", "description": "Sorts the slice in ascending order. This sort is stable (preserves order of equal elements).", "type": "method" },
47
- "sort_by": { "signature": "pub fn sort_by<F>(&mut self, compare: F) where F: FnMut(&T, &T) -> Ordering", "description": "Sorts the slice with a comparator function. Stable sort.", "type": "method" },
48
- "retain": { "signature": "pub fn retain<F>(&mut self, f: F) where F: FnMut(&T) -> bool", "description": "Retains only the elements specified by the predicate.", "type": "method" },
49
- "extend": { "signature": "pub fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)", "description": "Extends the collection with the contents of an iterator.", "type": "method" },
50
- "drain": { "signature": "pub fn drain<R: RangeBounds<usize>>(&mut self, range: R) -> Drain<'_, T>", "description": "Removes the specified range from the vector in bulk, returning an iterator over the removed items.", "type": "method" },
51
- "truncate": { "signature": "pub fn truncate(&mut self, len: usize)", "description": "Shortens the vector, keeping the first `len` elements and dropping the rest.", "type": "method" },
52
- "clear": { "signature": "pub fn clear(&mut self)", "description": "Clears the vector, removing all values. Does not affect allocated capacity.", "type": "method" },
53
- "get": { "signature": "pub fn get<I: SliceIndex<[T]>>(&self, index: I) -> Option<&I::Output>", "description": "Returns a reference to an element or subslice, or `None` if out of bounds.", "type": "method" },
54
- "first": { "signature": "pub fn first(&self) -> Option<&T>", "description": "Returns the first element of the slice, or `None` if empty.", "type": "method" },
55
- "last": { "signature": "pub fn last(&self) -> Option<&T>", "description": "Returns the last element of the slice, or `None` if empty.", "type": "method" },
56
- "remove": { "signature": "pub fn remove(&mut self, index: usize) -> T", "description": "Removes and returns the element at position `index`, shifting all elements after it to the left.", "type": "method" },
57
- "insert": { "signature": "pub fn insert(&mut self, index: usize, element: T)", "description": "Inserts an element at position `index`, shifting all elements after it to the right.", "type": "method" },
58
- "swap_remove": { "signature": "pub fn swap_remove(&mut self, index: usize) -> T", "description": "Removes an element from the vector and returns it, replacing it with the last element. O(1) but does not preserve ordering.", "type": "method" },
59
- "dedup": { "signature": "pub fn dedup(&mut self) where T: PartialEq", "description": "Removes consecutive repeated elements. If the vector is sorted, this removes all duplicates.", "type": "method" },
60
- "binary_search": { "signature": "pub fn binary_search(&self, x: &T) -> Result<usize, usize> where T: Ord", "description": "Binary searches for a given element. If found, returns `Ok(index)`. If not found, returns `Err(index)` where the element could be inserted.", "type": "method" },
61
- "windows": { "signature": "pub fn windows(&self, size: usize) -> Windows<'_, T>", "description": "Returns an iterator over overlapping sub-slices of the given size.", "type": "method" },
62
- "chunks": { "signature": "pub fn chunks(&self, chunk_size: usize) -> Chunks<'_, T>", "description": "Returns an iterator over `chunk_size` elements of the slice at a time.", "type": "method" }
63
- }
64
- },
65
- "HashMap": {
66
- "signature": "pub struct HashMap<K, V, S = RandomState>",
67
- "description": "A hash map implemented with quadratic probing and SIMD lookup. Requires keys to implement Eq and Hash.",
68
- "type": "struct",
69
- "module": "std::collections",
70
- "members": {
71
- "new": { "signature": "pub fn new() -> HashMap<K, V>", "description": "Creates an empty `HashMap`.", "type": "method" },
72
- "insert": { "signature": "pub fn insert(&mut self, k: K, v: V) -> Option<V>", "description": "Inserts a key-value pair. If the key existed, the old value is returned.", "type": "method" },
73
- "get": { "signature": "pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V> where K: Borrow<Q>, Q: Hash + Eq", "description": "Returns a reference to the value corresponding to the key.", "type": "method" },
74
- "get_mut": { "signature": "pub fn get_mut<Q: ?Sized>(&mut self, k: &Q) -> Option<&mut V> where K: Borrow<Q>, Q: Hash + Eq", "description": "Returns a mutable reference to the value corresponding to the key.", "type": "method" },
75
- "remove": { "signature": "pub fn remove<Q: ?Sized>(&mut self, k: &Q) -> Option<V> where K: Borrow<Q>, Q: Hash + Eq", "description": "Removes a key from the map, returning the value if the key was present.", "type": "method" },
76
- "contains_key": { "signature": "pub fn contains_key<Q: ?Sized>(&self, k: &Q) -> bool where K: Borrow<Q>, Q: Hash + Eq", "description": "Returns `true` if the map contains a value for the specified key.", "type": "method" },
77
- "keys": { "signature": "pub fn keys(&self) -> Keys<'_, K, V>", "description": "Returns an iterator visiting all keys in arbitrary order.", "type": "method" },
78
- "values": { "signature": "pub fn values(&self) -> Values<'_, K, V>", "description": "Returns an iterator visiting all values in arbitrary order.", "type": "method" },
79
- "iter": { "signature": "pub fn iter(&self) -> Iter<'_, K, V>", "description": "Returns an iterator visiting all key-value pairs in arbitrary order.", "type": "method" },
80
- "len": { "signature": "pub fn len(&self) -> usize", "description": "Returns the number of elements in the map.", "type": "method" },
81
- "is_empty": { "signature": "pub fn is_empty(&self) -> bool", "description": "Returns `true` if the map contains no elements.", "type": "method" },
82
- "entry": { "signature": "pub fn entry(&mut self, key: K) -> Entry<'_, K, V>", "description": "Gets the given key's corresponding entry in the map for in-place manipulation.", "type": "method" },
83
- "extend": { "signature": "pub fn extend<I: IntoIterator<Item = (K, V)>>(&mut self, iter: I)", "description": "Extends the map with the contents of an iterator of key-value pairs.", "type": "method" },
84
- "drain": { "signature": "pub fn drain(&mut self) -> Drain<'_, K, V>", "description": "Clears the map, returning all key-value pairs as an iterator.", "type": "method" },
85
- "retain": { "signature": "pub fn retain<F>(&mut self, f: F) where F: FnMut(&K, &mut V) -> bool", "description": "Retains only the elements specified by the predicate.", "type": "method" }
86
- }
87
- },
88
- "Option": {
89
- "signature": "pub enum Option<T> { None, Some(T) }",
90
- "description": "Represents an optional value. Every Option is either Some containing a value, or None.",
91
- "type": "enum",
92
- "module": "std::option",
93
- "members": {
94
- "Some": { "signature": "Some(T)", "description": "Contains the success value.", "type": "variant" },
95
- "None": { "signature": "None", "description": "No value.", "type": "variant" },
96
- "unwrap": { "signature": "pub fn unwrap(self) -> T", "description": "Returns the contained `Some` value. Panics if the value is `None`.", "type": "method" },
97
- "unwrap_or": { "signature": "pub fn unwrap_or(self, default: T) -> T", "description": "Returns the contained `Some` value or a provided default.", "type": "method" },
98
- "unwrap_or_else": { "signature": "pub fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T", "description": "Returns the contained `Some` value or computes it from a closure.", "type": "method" },
99
- "unwrap_or_default": { "signature": "pub fn unwrap_or_default(self) -> T where T: Default", "description": "Returns the contained `Some` value or the default value of `T`.", "type": "method" },
100
- "map": { "signature": "pub fn map<U, F: FnOnce(T) -> U>(self, f: F) -> Option<U>", "description": "Maps an `Option<T>` to `Option<U>` by applying a function to the contained value.", "type": "method" },
101
- "and_then": { "signature": "pub fn and_then<U, F: FnOnce(T) -> Option<U>>(self, f: F) -> Option<U>", "description": "Returns `None` if the option is `None`, otherwise calls `f` with the wrapped value and returns the result. Also known as flat_map.", "type": "method" },
102
- "or": { "signature": "pub fn or(self, optb: Option<T>) -> Option<T>", "description": "Returns the option if it contains a value, otherwise returns `optb`.", "type": "method" },
103
- "or_else": { "signature": "pub fn or_else<F: FnOnce() -> Option<T>>(self, f: F) -> Option<T>", "description": "Returns the option if it contains a value, otherwise calls `f` and returns the result.", "type": "method" },
104
- "filter": { "signature": "pub fn filter<P: FnOnce(&T) -> bool>(self, predicate: P) -> Option<T>", "description": "Returns `None` if the option is `None`, otherwise calls `predicate` and returns `Some(t)` if the predicate returns `true`.", "type": "method" },
105
- "is_some": { "signature": "pub fn is_some(&self) -> bool", "description": "Returns `true` if the option is a `Some` value.", "type": "method" },
106
- "is_none": { "signature": "pub fn is_none(&self) -> bool", "description": "Returns `true` if the option is a `None` value.", "type": "method" },
107
- "ok_or": { "signature": "pub fn ok_or<E>(self, err: E) -> Result<T, E>", "description": "Transforms the `Option<T>` into a `Result<T, E>`, mapping `Some(v)` to `Ok(v)` and `None` to `Err(err)`.", "type": "method" },
108
- "flatten": { "signature": "pub fn flatten(self) -> Option<T> where T: Option<T>", "description": "Converts from `Option<Option<T>>` to `Option<T>`.", "type": "method" },
109
- "zip": { "signature": "pub fn zip<U>(self, other: Option<U>) -> Option<(T, U)>", "description": "Zips `self` with another `Option`. Returns `Some((a, b))` if both are `Some`, otherwise `None`.", "type": "method" },
110
- "take": { "signature": "pub fn take(&mut self) -> Option<T>", "description": "Takes the value out of the option, leaving a `None` in its place.", "type": "method" }
111
- }
112
- },
113
- "Result": {
114
- "signature": "pub enum Result<T, E> { Ok(T), Err(E) }",
115
- "description": "A type used for returning and propagating errors. Ok(T) represents success, Err(E) represents failure.",
116
- "type": "enum",
117
- "module": "std::result",
118
- "members": {
119
- "Ok": { "signature": "Ok(T)", "description": "Contains the success value.", "type": "variant" },
120
- "Err": { "signature": "Err(E)", "description": "Contains the error value.", "type": "variant" },
121
- "unwrap": { "signature": "pub fn unwrap(self) -> T where E: Debug", "description": "Returns the contained `Ok` value. Panics if the value is an `Err`, with a panic message from the error's `Debug` impl.", "type": "method" },
122
- "unwrap_or": { "signature": "pub fn unwrap_or(self, default: T) -> T", "description": "Returns the contained `Ok` value or a provided default.", "type": "method" },
123
- "unwrap_err": { "signature": "pub fn unwrap_err(self) -> E where T: Debug", "description": "Returns the contained `Err` value. Panics if the value is `Ok`.", "type": "method" },
124
- "map": { "signature": "pub fn map<U, F: FnOnce(T) -> U>(self, op: F) -> Result<U, E>", "description": "Maps a `Result<T, E>` to `Result<U, E>` by applying a function to a contained `Ok` value.", "type": "method" },
125
- "map_err": { "signature": "pub fn map_err<F, O: FnOnce(E) -> F>(self, op: O) -> Result<T, F>", "description": "Maps a `Result<T, E>` to `Result<T, F>` by applying a function to a contained `Err` value.", "type": "method" },
126
- "and_then": { "signature": "pub fn and_then<U, F: FnOnce(T) -> Result<U, E>>(self, op: F) -> Result<U, E>", "description": "Calls `op` if the result is `Ok`, otherwise returns the `Err` value of self.", "type": "method" },
127
- "or": { "signature": "pub fn or<F>(self, res: Result<T, F>) -> Result<T, F>", "description": "Returns `res` if the result is `Err`, otherwise returns the `Ok` value of self.", "type": "method" },
128
- "or_else": { "signature": "pub fn or_else<F, O: FnOnce(E) -> Result<T, F>>(self, op: O) -> Result<T, F>", "description": "Calls `op` if the result is `Err`, otherwise returns the `Ok` value of self.", "type": "method" },
129
- "is_ok": { "signature": "pub fn is_ok(&self) -> bool", "description": "Returns `true` if the result is `Ok`.", "type": "method" },
130
- "is_err": { "signature": "pub fn is_err(&self) -> bool", "description": "Returns `true` if the result is `Err`.", "type": "method" },
131
- "ok": { "signature": "pub fn ok(self) -> Option<T>", "description": "Converts from `Result<T, E>` to `Option<T>`, discarding the error.", "type": "method" },
132
- "err": { "signature": "pub fn err(self) -> Option<E>", "description": "Converts from `Result<T, E>` to `Option<E>`, discarding the success value.", "type": "method" },
133
- "expect": { "signature": "pub fn expect(self, msg: &str) -> T where E: Debug", "description": "Returns the contained `Ok` value. Panics with the provided message if `Err`.", "type": "method" }
134
- }
135
- },
136
- "Box": {
137
- "signature": "pub struct Box<T: ?Sized>",
138
- "description": "A pointer type for heap allocation. Box<T> provides ownership of a heap-allocated value of type T.",
139
- "type": "struct",
140
- "module": "std::boxed",
141
- "members": {
142
- "new": { "signature": "pub fn new(x: T) -> Box<T>", "description": "Allocates memory on the heap and places `x` into it.", "type": "method" },
143
- "into_raw": { "signature": "pub fn into_raw(b: Box<T>) -> *mut T", "description": "Consumes the `Box`, returning a raw pointer. The caller is responsible for freeing the memory.", "type": "method" },
144
- "from_raw": { "signature": "pub unsafe fn from_raw(raw: *mut T) -> Box<T>", "description": "Constructs a `Box<T>` from a raw pointer. Undefined behavior if the pointer was not allocated by `Box`.", "type": "method" },
145
- "leak": { "signature": "pub fn leak<'a>(b: Box<T>) -> &'a mut T", "description": "Consumes and leaks the `Box`, returning a mutable reference with a `'static` lifetime.", "type": "method" }
146
- }
147
- },
148
- "Rc": {
149
- "signature": "pub struct Rc<T: ?Sized>",
150
- "description": "A single-threaded reference-counting pointer. Rc provides shared ownership of a value of type T, allocated on the heap.",
151
- "type": "struct",
152
- "module": "std::rc",
153
- "members": {
154
- "new": { "signature": "pub fn new(value: T) -> Rc<T>", "description": "Constructs a new `Rc<T>`.", "type": "method" },
155
- "clone": { "signature": "pub fn clone(this: &Rc<T>) -> Rc<T>", "description": "Creates a new pointer to the same allocation, incrementing the reference count.", "type": "method" },
156
- "strong_count": { "signature": "pub fn strong_count(this: &Rc<T>) -> usize", "description": "Gets the number of strong (`Rc`) pointers to this allocation.", "type": "method" },
157
- "try_unwrap": { "signature": "pub fn try_unwrap(this: Rc<T>) -> Result<T, Rc<T>>", "description": "Returns the inner value if the `Rc` has exactly one strong reference.", "type": "method" },
158
- "downgrade": { "signature": "pub fn downgrade(this: &Rc<T>) -> Weak<T>", "description": "Creates a new `Weak` pointer to this allocation.", "type": "method" }
159
- }
160
- },
161
- "Arc": {
162
- "signature": "pub struct Arc<T: ?Sized>",
163
- "description": "A thread-safe reference-counting pointer. Arc stands for Atomically Reference Counted.",
164
- "type": "struct",
165
- "module": "std::sync",
166
- "members": {
167
- "new": { "signature": "pub fn new(data: T) -> Arc<T>", "description": "Constructs a new `Arc<T>`.", "type": "method" },
168
- "clone": { "signature": "pub fn clone(this: &Arc<T>) -> Arc<T>", "description": "Creates a new pointer to the same allocation, atomically incrementing the reference count.", "type": "method" },
169
- "strong_count": { "signature": "pub fn strong_count(this: &Arc<T>) -> usize", "description": "Gets the number of strong (`Arc`) pointers to this allocation.", "type": "method" },
170
- "try_unwrap": { "signature": "pub fn try_unwrap(this: Arc<T>) -> Result<T, Arc<T>>", "description": "Returns the inner value if the `Arc` has exactly one strong reference.", "type": "method" },
171
- "downgrade": { "signature": "pub fn downgrade(this: &Arc<T>) -> Weak<T>", "description": "Creates a new `Weak` pointer to this allocation.", "type": "method" }
172
- }
173
- },
174
- "Iterator": {
175
- "signature": "pub trait Iterator",
176
- "description": "A trait for dealing with iterators. Only the next method is required; all other methods have default implementations.",
177
- "type": "trait",
178
- "module": "std::iter",
179
- "members": {
180
- "next": { "signature": "fn next(&mut self) -> Option<Self::Item>", "description": "Advances the iterator and returns the next value. Returns `None` when iteration is complete.", "type": "method" },
181
- "map": { "signature": "fn map<B, F: FnMut(Self::Item) -> B>(self, f: F) -> Map<Self, F>", "description": "Takes a closure and creates an iterator that calls that closure on each element.", "type": "method" },
182
- "filter": { "signature": "fn filter<P: FnMut(&Self::Item) -> bool>(self, predicate: P) -> Filter<Self, P>", "description": "Creates an iterator that only yields elements matching the predicate.", "type": "method" },
183
- "fold": { "signature": "fn fold<B, F: FnMut(B, Self::Item) -> B>(self, init: B, f: F) -> B", "description": "Folds every element into an accumulator by applying a closure, returning the final result.", "type": "method" },
184
- "collect": { "signature": "fn collect<B: FromIterator<Self::Item>>(self) -> B", "description": "Transforms an iterator into a collection. Can collect into Vec, HashMap, String, etc.", "type": "method" },
185
- "enumerate": { "signature": "fn enumerate(self) -> Enumerate<Self>", "description": "Creates an iterator that yields `(index, value)` pairs.", "type": "method" },
186
- "zip": { "signature": "fn zip<U: IntoIterator>(self, other: U) -> Zip<Self, U::IntoIter>", "description": "Zips two iterators into a single iterator of pairs.", "type": "method" },
187
- "take": { "signature": "fn take(self, n: usize) -> Take<Self>", "description": "Creates an iterator that yields at most `n` elements.", "type": "method" },
188
- "skip": { "signature": "fn skip(self, n: usize) -> Skip<Self>", "description": "Creates an iterator that skips the first `n` elements.", "type": "method" },
189
- "chain": { "signature": "fn chain<U: IntoIterator<Item = Self::Item>>(self, other: U) -> Chain<Self, U::IntoIter>", "description": "Creates an iterator that chains two iterators together, yielding elements from the first then the second.", "type": "method" },
190
- "flatten": { "signature": "fn flatten(self) -> Flatten<Self> where Self::Item: IntoIterator", "description": "Creates an iterator that flattens nested structure.", "type": "method" },
191
- "any": { "signature": "fn any<F: FnMut(Self::Item) -> bool>(&mut self, f: F) -> bool", "description": "Tests if any element of the iterator matches a predicate.", "type": "method" },
192
- "all": { "signature": "fn all<F: FnMut(Self::Item) -> bool>(&mut self, f: F) -> bool", "description": "Tests if every element of the iterator matches a predicate.", "type": "method" },
193
- "find": { "signature": "fn find<P: FnMut(&Self::Item) -> bool>(&mut self, predicate: P) -> Option<Self::Item>", "description": "Searches for an element that satisfies the predicate.", "type": "method" },
194
- "position": { "signature": "fn position<P: FnMut(Self::Item) -> bool>(&mut self, predicate: P) -> Option<usize>", "description": "Searches for an element, returning its index.", "type": "method" },
195
- "count": { "signature": "fn count(self) -> usize", "description": "Consumes the iterator, counting the number of elements.", "type": "method" },
196
- "sum": { "signature": "fn sum<S: Sum<Self::Item>>(self) -> S", "description": "Sums the elements of an iterator.", "type": "method" },
197
- "product": { "signature": "fn product<P: Product<Self::Item>>(self) -> P", "description": "Iterates over the entire iterator, multiplying all elements.", "type": "method" },
198
- "min": { "signature": "fn min(self) -> Option<Self::Item> where Self::Item: Ord", "description": "Returns the minimum element of an iterator.", "type": "method" },
199
- "max": { "signature": "fn max(self) -> Option<Self::Item> where Self::Item: Ord", "description": "Returns the maximum element of an iterator.", "type": "method" },
200
- "cloned": { "signature": "fn cloned<'a, T: 'a + Clone>(self) -> Cloned<Self> where Self: Iterator<Item = &'a T>", "description": "Creates an iterator that clones all of its elements.", "type": "method" },
201
- "copied": { "signature": "fn copied<'a, T: 'a + Copy>(self) -> Copied<Self> where Self: Iterator<Item = &'a T>", "description": "Creates an iterator that copies all of its elements.", "type": "method" },
202
- "peekable": { "signature": "fn peekable(self) -> Peekable<Self>", "description": "Creates an iterator that can use the `peek` method to look at the next element without consuming it.", "type": "method" },
203
- "rev": { "signature": "fn rev(self) -> Rev<Self> where Self: DoubleEndedIterator", "description": "Reverses an iterator's direction.", "type": "method" }
204
- }
205
- }
206
- }
1
+ {
2
+ "language": "rust",
3
+ "definitions": {
4
+ "String": {
5
+ "signature": "pub struct String",
6
+ "description": "A UTF-8–encoded, growable string. The most common string type in Rust, owning its contents.",
7
+ "type": "struct",
8
+ "module": "std::string",
9
+ "members": {
10
+ "new": {
11
+ "signature": "pub const fn new() -> String",
12
+ "description": "Creates a new empty `String`.",
13
+ "type": "method"
14
+ },
15
+ "from": {
16
+ "signature": "pub fn from(s: &str) -> String",
17
+ "description": "Converts a `&str` into a `String`.",
18
+ "type": "method"
19
+ },
20
+ "push": {
21
+ "signature": "pub fn push(&mut self, ch: char)",
22
+ "description": "Appends the given `char` to the end of this `String`.",
23
+ "type": "method"
24
+ },
25
+ "push_str": {
26
+ "signature": "pub fn push_str(&mut self, string: &str)",
27
+ "description": "Appends a given string slice onto the end of this `String`.",
28
+ "type": "method"
29
+ },
30
+ "len": {
31
+ "signature": "pub fn len(&self) -> usize",
32
+ "description": "Returns the length of this `String`, in bytes, not `char`s or graphemes.",
33
+ "type": "method"
34
+ },
35
+ "is_empty": {
36
+ "signature": "pub fn is_empty(&self) -> bool",
37
+ "description": "Returns `true` if this `String` has a length of zero.",
38
+ "type": "method"
39
+ },
40
+ "capacity": {
41
+ "signature": "pub fn capacity(&self) -> usize",
42
+ "description": "Returns this `String`'s capacity, in bytes.",
43
+ "type": "method"
44
+ },
45
+ "contains": {
46
+ "signature": "pub fn contains<'a, P: Pattern<'a>>(&'a self, pat: P) -> bool",
47
+ "description": "Returns `true` if the given pattern matches a sub-slice of this string slice.",
48
+ "type": "method"
49
+ },
50
+ "replace": {
51
+ "signature": "pub fn replace<'a, P: Pattern<'a>>(&'a self, from: P, to: &str) -> String",
52
+ "description": "Replaces all matches of a pattern with another string.",
53
+ "type": "method"
54
+ },
55
+ "trim": {
56
+ "signature": "pub fn trim(&self) -> &str",
57
+ "description": "Returns a string slice with leading and trailing whitespace removed.",
58
+ "type": "method"
59
+ },
60
+ "to_uppercase": {
61
+ "signature": "pub fn to_uppercase(&self) -> String",
62
+ "description": "Returns the uppercase equivalent of this string slice, as a new `String`.",
63
+ "type": "method"
64
+ },
65
+ "to_lowercase": {
66
+ "signature": "pub fn to_lowercase(&self) -> String",
67
+ "description": "Returns the lowercase equivalent of this string slice, as a new `String`.",
68
+ "type": "method"
69
+ },
70
+ "as_str": {
71
+ "signature": "pub fn as_str(&self) -> &str",
72
+ "description": "Extracts a string slice containing the entire `String`.",
73
+ "type": "method"
74
+ },
75
+ "as_bytes": {
76
+ "signature": "pub fn as_bytes(&self) -> &[u8]",
77
+ "description": "Returns a byte slice of this `String`'s contents.",
78
+ "type": "method"
79
+ },
80
+ "chars": {
81
+ "signature": "pub fn chars(&self) -> Chars<'_>",
82
+ "description": "Returns an iterator over the `char`s of this string slice.",
83
+ "type": "method"
84
+ },
85
+ "split": {
86
+ "signature": "pub fn split<'a, P: Pattern<'a>>(&'a self, pat: P) -> Split<'a, P>",
87
+ "description": "Returns an iterator over substrings of this string slice, separated by a pattern.",
88
+ "type": "method"
89
+ },
90
+ "starts_with": {
91
+ "signature": "pub fn starts_with<'a, P: Pattern<'a>>(&'a self, pat: P) -> bool",
92
+ "description": "Returns `true` if the given pattern matches a prefix of this string slice.",
93
+ "type": "method"
94
+ },
95
+ "ends_with": {
96
+ "signature": "pub fn ends_with<'a, P: Pattern<'a>>(&'a self, pat: P) -> bool",
97
+ "description": "Returns `true` if the given pattern matches a suffix of this string slice.",
98
+ "type": "method"
99
+ },
100
+ "into_bytes": {
101
+ "signature": "pub fn into_bytes(self) -> Vec<u8>",
102
+ "description": "Converts this `String` into a byte vector, consuming the string.",
103
+ "type": "method"
104
+ }
105
+ }
106
+ },
107
+ "Vec": {
108
+ "signature": "pub struct Vec<T>",
109
+ "description": "A contiguous growable array type. Provides O(1) indexed access, amortized O(1) push to the end, and O(n) insert and removal.",
110
+ "type": "struct",
111
+ "module": "std::vec",
112
+ "members": {
113
+ "new": {
114
+ "signature": "pub const fn new() -> Vec<T>",
115
+ "description": "Constructs a new, empty `Vec<T>`. Does not allocate until elements are pushed.",
116
+ "type": "method"
117
+ },
118
+ "with_capacity": {
119
+ "signature": "pub fn with_capacity(capacity: usize) -> Vec<T>",
120
+ "description": "Constructs a new, empty `Vec<T>` with at least the specified capacity.",
121
+ "type": "method"
122
+ },
123
+ "push": {
124
+ "signature": "pub fn push(&mut self, value: T)",
125
+ "description": "Appends an element to the back of the collection.",
126
+ "type": "method"
127
+ },
128
+ "pop": {
129
+ "signature": "pub fn pop(&mut self) -> Option<T>",
130
+ "description": "Removes the last element from the vector and returns it, or `None` if empty.",
131
+ "type": "method"
132
+ },
133
+ "len": {
134
+ "signature": "pub fn len(&self) -> usize",
135
+ "description": "Returns the number of elements in the vector.",
136
+ "type": "method"
137
+ },
138
+ "is_empty": {
139
+ "signature": "pub fn is_empty(&self) -> bool",
140
+ "description": "Returns `true` if the vector contains no elements.",
141
+ "type": "method"
142
+ },
143
+ "contains": {
144
+ "signature": "pub fn contains(&self, x: &T) -> bool where T: PartialEq",
145
+ "description": "Returns `true` if the slice contains an element with the given value.",
146
+ "type": "method"
147
+ },
148
+ "iter": {
149
+ "signature": "pub fn iter(&self) -> Iter<'_, T>",
150
+ "description": "Returns an iterator over the slice.",
151
+ "type": "method"
152
+ },
153
+ "iter_mut": {
154
+ "signature": "pub fn iter_mut(&mut self) -> IterMut<'_, T>",
155
+ "description": "Returns a mutable iterator over the slice.",
156
+ "type": "method"
157
+ },
158
+ "sort": {
159
+ "signature": "pub fn sort(&mut self) where T: Ord",
160
+ "description": "Sorts the slice in ascending order. This sort is stable (preserves order of equal elements).",
161
+ "type": "method"
162
+ },
163
+ "sort_by": {
164
+ "signature": "pub fn sort_by<F>(&mut self, compare: F) where F: FnMut(&T, &T) -> Ordering",
165
+ "description": "Sorts the slice with a comparator function. Stable sort.",
166
+ "type": "method"
167
+ },
168
+ "retain": {
169
+ "signature": "pub fn retain<F>(&mut self, f: F) where F: FnMut(&T) -> bool",
170
+ "description": "Retains only the elements specified by the predicate.",
171
+ "type": "method"
172
+ },
173
+ "extend": {
174
+ "signature": "pub fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)",
175
+ "description": "Extends the collection with the contents of an iterator.",
176
+ "type": "method"
177
+ },
178
+ "drain": {
179
+ "signature": "pub fn drain<R: RangeBounds<usize>>(&mut self, range: R) -> Drain<'_, T>",
180
+ "description": "Removes the specified range from the vector in bulk, returning an iterator over the removed items.",
181
+ "type": "method"
182
+ },
183
+ "truncate": {
184
+ "signature": "pub fn truncate(&mut self, len: usize)",
185
+ "description": "Shortens the vector, keeping the first `len` elements and dropping the rest.",
186
+ "type": "method"
187
+ },
188
+ "clear": {
189
+ "signature": "pub fn clear(&mut self)",
190
+ "description": "Clears the vector, removing all values. Does not affect allocated capacity.",
191
+ "type": "method"
192
+ },
193
+ "get": {
194
+ "signature": "pub fn get<I: SliceIndex<[T]>>(&self, index: I) -> Option<&I::Output>",
195
+ "description": "Returns a reference to an element or subslice, or `None` if out of bounds.",
196
+ "type": "method"
197
+ },
198
+ "first": {
199
+ "signature": "pub fn first(&self) -> Option<&T>",
200
+ "description": "Returns the first element of the slice, or `None` if empty.",
201
+ "type": "method"
202
+ },
203
+ "last": {
204
+ "signature": "pub fn last(&self) -> Option<&T>",
205
+ "description": "Returns the last element of the slice, or `None` if empty.",
206
+ "type": "method"
207
+ },
208
+ "remove": {
209
+ "signature": "pub fn remove(&mut self, index: usize) -> T",
210
+ "description": "Removes and returns the element at position `index`, shifting all elements after it to the left.",
211
+ "type": "method"
212
+ },
213
+ "insert": {
214
+ "signature": "pub fn insert(&mut self, index: usize, element: T)",
215
+ "description": "Inserts an element at position `index`, shifting all elements after it to the right.",
216
+ "type": "method"
217
+ },
218
+ "swap_remove": {
219
+ "signature": "pub fn swap_remove(&mut self, index: usize) -> T",
220
+ "description": "Removes an element from the vector and returns it, replacing it with the last element. O(1) but does not preserve ordering.",
221
+ "type": "method"
222
+ },
223
+ "dedup": {
224
+ "signature": "pub fn dedup(&mut self) where T: PartialEq",
225
+ "description": "Removes consecutive repeated elements. If the vector is sorted, this removes all duplicates.",
226
+ "type": "method"
227
+ },
228
+ "binary_search": {
229
+ "signature": "pub fn binary_search(&self, x: &T) -> Result<usize, usize> where T: Ord",
230
+ "description": "Binary searches for a given element. If found, returns `Ok(index)`. If not found, returns `Err(index)` where the element could be inserted.",
231
+ "type": "method"
232
+ },
233
+ "windows": {
234
+ "signature": "pub fn windows(&self, size: usize) -> Windows<'_, T>",
235
+ "description": "Returns an iterator over overlapping sub-slices of the given size.",
236
+ "type": "method"
237
+ },
238
+ "chunks": {
239
+ "signature": "pub fn chunks(&self, chunk_size: usize) -> Chunks<'_, T>",
240
+ "description": "Returns an iterator over `chunk_size` elements of the slice at a time.",
241
+ "type": "method"
242
+ }
243
+ }
244
+ },
245
+ "HashMap": {
246
+ "signature": "pub struct HashMap<K, V, S = RandomState>",
247
+ "description": "A hash map implemented with quadratic probing and SIMD lookup. Requires keys to implement Eq and Hash.",
248
+ "type": "struct",
249
+ "module": "std::collections",
250
+ "members": {
251
+ "new": {
252
+ "signature": "pub fn new() -> HashMap<K, V>",
253
+ "description": "Creates an empty `HashMap`.",
254
+ "type": "method"
255
+ },
256
+ "insert": {
257
+ "signature": "pub fn insert(&mut self, k: K, v: V) -> Option<V>",
258
+ "description": "Inserts a key-value pair. If the key existed, the old value is returned.",
259
+ "type": "method"
260
+ },
261
+ "get": {
262
+ "signature": "pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V> where K: Borrow<Q>, Q: Hash + Eq",
263
+ "description": "Returns a reference to the value corresponding to the key.",
264
+ "type": "method"
265
+ },
266
+ "get_mut": {
267
+ "signature": "pub fn get_mut<Q: ?Sized>(&mut self, k: &Q) -> Option<&mut V> where K: Borrow<Q>, Q: Hash + Eq",
268
+ "description": "Returns a mutable reference to the value corresponding to the key.",
269
+ "type": "method"
270
+ },
271
+ "remove": {
272
+ "signature": "pub fn remove<Q: ?Sized>(&mut self, k: &Q) -> Option<V> where K: Borrow<Q>, Q: Hash + Eq",
273
+ "description": "Removes a key from the map, returning the value if the key was present.",
274
+ "type": "method"
275
+ },
276
+ "contains_key": {
277
+ "signature": "pub fn contains_key<Q: ?Sized>(&self, k: &Q) -> bool where K: Borrow<Q>, Q: Hash + Eq",
278
+ "description": "Returns `true` if the map contains a value for the specified key.",
279
+ "type": "method"
280
+ },
281
+ "keys": {
282
+ "signature": "pub fn keys(&self) -> Keys<'_, K, V>",
283
+ "description": "Returns an iterator visiting all keys in arbitrary order.",
284
+ "type": "method"
285
+ },
286
+ "values": {
287
+ "signature": "pub fn values(&self) -> Values<'_, K, V>",
288
+ "description": "Returns an iterator visiting all values in arbitrary order.",
289
+ "type": "method"
290
+ },
291
+ "iter": {
292
+ "signature": "pub fn iter(&self) -> Iter<'_, K, V>",
293
+ "description": "Returns an iterator visiting all key-value pairs in arbitrary order.",
294
+ "type": "method"
295
+ },
296
+ "len": {
297
+ "signature": "pub fn len(&self) -> usize",
298
+ "description": "Returns the number of elements in the map.",
299
+ "type": "method"
300
+ },
301
+ "is_empty": {
302
+ "signature": "pub fn is_empty(&self) -> bool",
303
+ "description": "Returns `true` if the map contains no elements.",
304
+ "type": "method"
305
+ },
306
+ "entry": {
307
+ "signature": "pub fn entry(&mut self, key: K) -> Entry<'_, K, V>",
308
+ "description": "Gets the given key's corresponding entry in the map for in-place manipulation.",
309
+ "type": "method"
310
+ },
311
+ "extend": {
312
+ "signature": "pub fn extend<I: IntoIterator<Item = (K, V)>>(&mut self, iter: I)",
313
+ "description": "Extends the map with the contents of an iterator of key-value pairs.",
314
+ "type": "method"
315
+ },
316
+ "drain": {
317
+ "signature": "pub fn drain(&mut self) -> Drain<'_, K, V>",
318
+ "description": "Clears the map, returning all key-value pairs as an iterator.",
319
+ "type": "method"
320
+ },
321
+ "retain": {
322
+ "signature": "pub fn retain<F>(&mut self, f: F) where F: FnMut(&K, &mut V) -> bool",
323
+ "description": "Retains only the elements specified by the predicate.",
324
+ "type": "method"
325
+ }
326
+ }
327
+ },
328
+ "Option": {
329
+ "signature": "pub enum Option<T> { None, Some(T) }",
330
+ "description": "Represents an optional value. Every Option is either Some containing a value, or None.",
331
+ "type": "enum",
332
+ "module": "std::option",
333
+ "members": {
334
+ "Some": {
335
+ "signature": "Some(T)",
336
+ "description": "Contains the success value.",
337
+ "type": "variant"
338
+ },
339
+ "None": {
340
+ "signature": "None",
341
+ "description": "No value.",
342
+ "type": "variant"
343
+ },
344
+ "unwrap": {
345
+ "signature": "pub fn unwrap(self) -> T",
346
+ "description": "Returns the contained `Some` value. Panics if the value is `None`.",
347
+ "type": "method"
348
+ },
349
+ "unwrap_or": {
350
+ "signature": "pub fn unwrap_or(self, default: T) -> T",
351
+ "description": "Returns the contained `Some` value or a provided default.",
352
+ "type": "method"
353
+ },
354
+ "unwrap_or_else": {
355
+ "signature": "pub fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T",
356
+ "description": "Returns the contained `Some` value or computes it from a closure.",
357
+ "type": "method"
358
+ },
359
+ "unwrap_or_default": {
360
+ "signature": "pub fn unwrap_or_default(self) -> T where T: Default",
361
+ "description": "Returns the contained `Some` value or the default value of `T`.",
362
+ "type": "method"
363
+ },
364
+ "map": {
365
+ "signature": "pub fn map<U, F: FnOnce(T) -> U>(self, f: F) -> Option<U>",
366
+ "description": "Maps an `Option<T>` to `Option<U>` by applying a function to the contained value.",
367
+ "type": "method"
368
+ },
369
+ "and_then": {
370
+ "signature": "pub fn and_then<U, F: FnOnce(T) -> Option<U>>(self, f: F) -> Option<U>",
371
+ "description": "Returns `None` if the option is `None`, otherwise calls `f` with the wrapped value and returns the result. Also known as flat_map.",
372
+ "type": "method"
373
+ },
374
+ "or": {
375
+ "signature": "pub fn or(self, optb: Option<T>) -> Option<T>",
376
+ "description": "Returns the option if it contains a value, otherwise returns `optb`.",
377
+ "type": "method"
378
+ },
379
+ "or_else": {
380
+ "signature": "pub fn or_else<F: FnOnce() -> Option<T>>(self, f: F) -> Option<T>",
381
+ "description": "Returns the option if it contains a value, otherwise calls `f` and returns the result.",
382
+ "type": "method"
383
+ },
384
+ "filter": {
385
+ "signature": "pub fn filter<P: FnOnce(&T) -> bool>(self, predicate: P) -> Option<T>",
386
+ "description": "Returns `None` if the option is `None`, otherwise calls `predicate` and returns `Some(t)` if the predicate returns `true`.",
387
+ "type": "method"
388
+ },
389
+ "is_some": {
390
+ "signature": "pub fn is_some(&self) -> bool",
391
+ "description": "Returns `true` if the option is a `Some` value.",
392
+ "type": "method"
393
+ },
394
+ "is_none": {
395
+ "signature": "pub fn is_none(&self) -> bool",
396
+ "description": "Returns `true` if the option is a `None` value.",
397
+ "type": "method"
398
+ },
399
+ "ok_or": {
400
+ "signature": "pub fn ok_or<E>(self, err: E) -> Result<T, E>",
401
+ "description": "Transforms the `Option<T>` into a `Result<T, E>`, mapping `Some(v)` to `Ok(v)` and `None` to `Err(err)`.",
402
+ "type": "method"
403
+ },
404
+ "flatten": {
405
+ "signature": "pub fn flatten(self) -> Option<T> where T: Option<T>",
406
+ "description": "Converts from `Option<Option<T>>` to `Option<T>`.",
407
+ "type": "method"
408
+ },
409
+ "zip": {
410
+ "signature": "pub fn zip<U>(self, other: Option<U>) -> Option<(T, U)>",
411
+ "description": "Zips `self` with another `Option`. Returns `Some((a, b))` if both are `Some`, otherwise `None`.",
412
+ "type": "method"
413
+ },
414
+ "take": {
415
+ "signature": "pub fn take(&mut self) -> Option<T>",
416
+ "description": "Takes the value out of the option, leaving a `None` in its place.",
417
+ "type": "method"
418
+ }
419
+ }
420
+ },
421
+ "Result": {
422
+ "signature": "pub enum Result<T, E> { Ok(T), Err(E) }",
423
+ "description": "A type used for returning and propagating errors. Ok(T) represents success, Err(E) represents failure.",
424
+ "type": "enum",
425
+ "module": "std::result",
426
+ "members": {
427
+ "Ok": {
428
+ "signature": "Ok(T)",
429
+ "description": "Contains the success value.",
430
+ "type": "variant"
431
+ },
432
+ "Err": {
433
+ "signature": "Err(E)",
434
+ "description": "Contains the error value.",
435
+ "type": "variant"
436
+ },
437
+ "unwrap": {
438
+ "signature": "pub fn unwrap(self) -> T where E: Debug",
439
+ "description": "Returns the contained `Ok` value. Panics if the value is an `Err`, with a panic message from the error's `Debug` impl.",
440
+ "type": "method"
441
+ },
442
+ "unwrap_or": {
443
+ "signature": "pub fn unwrap_or(self, default: T) -> T",
444
+ "description": "Returns the contained `Ok` value or a provided default.",
445
+ "type": "method"
446
+ },
447
+ "unwrap_err": {
448
+ "signature": "pub fn unwrap_err(self) -> E where T: Debug",
449
+ "description": "Returns the contained `Err` value. Panics if the value is `Ok`.",
450
+ "type": "method"
451
+ },
452
+ "map": {
453
+ "signature": "pub fn map<U, F: FnOnce(T) -> U>(self, op: F) -> Result<U, E>",
454
+ "description": "Maps a `Result<T, E>` to `Result<U, E>` by applying a function to a contained `Ok` value.",
455
+ "type": "method"
456
+ },
457
+ "map_err": {
458
+ "signature": "pub fn map_err<F, O: FnOnce(E) -> F>(self, op: O) -> Result<T, F>",
459
+ "description": "Maps a `Result<T, E>` to `Result<T, F>` by applying a function to a contained `Err` value.",
460
+ "type": "method"
461
+ },
462
+ "and_then": {
463
+ "signature": "pub fn and_then<U, F: FnOnce(T) -> Result<U, E>>(self, op: F) -> Result<U, E>",
464
+ "description": "Calls `op` if the result is `Ok`, otherwise returns the `Err` value of self.",
465
+ "type": "method"
466
+ },
467
+ "or": {
468
+ "signature": "pub fn or<F>(self, res: Result<T, F>) -> Result<T, F>",
469
+ "description": "Returns `res` if the result is `Err`, otherwise returns the `Ok` value of self.",
470
+ "type": "method"
471
+ },
472
+ "or_else": {
473
+ "signature": "pub fn or_else<F, O: FnOnce(E) -> Result<T, F>>(self, op: O) -> Result<T, F>",
474
+ "description": "Calls `op` if the result is `Err`, otherwise returns the `Ok` value of self.",
475
+ "type": "method"
476
+ },
477
+ "is_ok": {
478
+ "signature": "pub fn is_ok(&self) -> bool",
479
+ "description": "Returns `true` if the result is `Ok`.",
480
+ "type": "method"
481
+ },
482
+ "is_err": {
483
+ "signature": "pub fn is_err(&self) -> bool",
484
+ "description": "Returns `true` if the result is `Err`.",
485
+ "type": "method"
486
+ },
487
+ "ok": {
488
+ "signature": "pub fn ok(self) -> Option<T>",
489
+ "description": "Converts from `Result<T, E>` to `Option<T>`, discarding the error.",
490
+ "type": "method"
491
+ },
492
+ "err": {
493
+ "signature": "pub fn err(self) -> Option<E>",
494
+ "description": "Converts from `Result<T, E>` to `Option<E>`, discarding the success value.",
495
+ "type": "method"
496
+ },
497
+ "expect": {
498
+ "signature": "pub fn expect(self, msg: &str) -> T where E: Debug",
499
+ "description": "Returns the contained `Ok` value. Panics with the provided message if `Err`.",
500
+ "type": "method"
501
+ }
502
+ }
503
+ },
504
+ "Box": {
505
+ "signature": "pub struct Box<T: ?Sized>",
506
+ "description": "A pointer type for heap allocation. Box<T> provides ownership of a heap-allocated value of type T.",
507
+ "type": "struct",
508
+ "module": "std::boxed",
509
+ "members": {
510
+ "new": {
511
+ "signature": "pub fn new(x: T) -> Box<T>",
512
+ "description": "Allocates memory on the heap and places `x` into it.",
513
+ "type": "method"
514
+ },
515
+ "into_raw": {
516
+ "signature": "pub fn into_raw(b: Box<T>) -> *mut T",
517
+ "description": "Consumes the `Box`, returning a raw pointer. The caller is responsible for freeing the memory.",
518
+ "type": "method"
519
+ },
520
+ "from_raw": {
521
+ "signature": "pub unsafe fn from_raw(raw: *mut T) -> Box<T>",
522
+ "description": "Constructs a `Box<T>` from a raw pointer. Undefined behavior if the pointer was not allocated by `Box`.",
523
+ "type": "method"
524
+ },
525
+ "leak": {
526
+ "signature": "pub fn leak<'a>(b: Box<T>) -> &'a mut T",
527
+ "description": "Consumes and leaks the `Box`, returning a mutable reference with a `'static` lifetime.",
528
+ "type": "method"
529
+ }
530
+ }
531
+ },
532
+ "Rc": {
533
+ "signature": "pub struct Rc<T: ?Sized>",
534
+ "description": "A single-threaded reference-counting pointer. Rc provides shared ownership of a value of type T, allocated on the heap.",
535
+ "type": "struct",
536
+ "module": "std::rc",
537
+ "members": {
538
+ "new": {
539
+ "signature": "pub fn new(value: T) -> Rc<T>",
540
+ "description": "Constructs a new `Rc<T>`.",
541
+ "type": "method"
542
+ },
543
+ "clone": {
544
+ "signature": "pub fn clone(this: &Rc<T>) -> Rc<T>",
545
+ "description": "Creates a new pointer to the same allocation, incrementing the reference count.",
546
+ "type": "method"
547
+ },
548
+ "strong_count": {
549
+ "signature": "pub fn strong_count(this: &Rc<T>) -> usize",
550
+ "description": "Gets the number of strong (`Rc`) pointers to this allocation.",
551
+ "type": "method"
552
+ },
553
+ "try_unwrap": {
554
+ "signature": "pub fn try_unwrap(this: Rc<T>) -> Result<T, Rc<T>>",
555
+ "description": "Returns the inner value if the `Rc` has exactly one strong reference.",
556
+ "type": "method"
557
+ },
558
+ "downgrade": {
559
+ "signature": "pub fn downgrade(this: &Rc<T>) -> Weak<T>",
560
+ "description": "Creates a new `Weak` pointer to this allocation.",
561
+ "type": "method"
562
+ }
563
+ }
564
+ },
565
+ "Arc": {
566
+ "signature": "pub struct Arc<T: ?Sized>",
567
+ "description": "A thread-safe reference-counting pointer. Arc stands for Atomically Reference Counted.",
568
+ "type": "struct",
569
+ "module": "std::sync",
570
+ "members": {
571
+ "new": {
572
+ "signature": "pub fn new(data: T) -> Arc<T>",
573
+ "description": "Constructs a new `Arc<T>`.",
574
+ "type": "method"
575
+ },
576
+ "clone": {
577
+ "signature": "pub fn clone(this: &Arc<T>) -> Arc<T>",
578
+ "description": "Creates a new pointer to the same allocation, atomically incrementing the reference count.",
579
+ "type": "method"
580
+ },
581
+ "strong_count": {
582
+ "signature": "pub fn strong_count(this: &Arc<T>) -> usize",
583
+ "description": "Gets the number of strong (`Arc`) pointers to this allocation.",
584
+ "type": "method"
585
+ },
586
+ "try_unwrap": {
587
+ "signature": "pub fn try_unwrap(this: Arc<T>) -> Result<T, Arc<T>>",
588
+ "description": "Returns the inner value if the `Arc` has exactly one strong reference.",
589
+ "type": "method"
590
+ },
591
+ "downgrade": {
592
+ "signature": "pub fn downgrade(this: &Arc<T>) -> Weak<T>",
593
+ "description": "Creates a new `Weak` pointer to this allocation.",
594
+ "type": "method"
595
+ }
596
+ }
597
+ },
598
+ "Iterator": {
599
+ "signature": "pub trait Iterator",
600
+ "description": "A trait for dealing with iterators. Only the next method is required; all other methods have default implementations.",
601
+ "type": "trait",
602
+ "module": "std::iter",
603
+ "members": {
604
+ "next": {
605
+ "signature": "fn next(&mut self) -> Option<Self::Item>",
606
+ "description": "Advances the iterator and returns the next value. Returns `None` when iteration is complete.",
607
+ "type": "method"
608
+ },
609
+ "map": {
610
+ "signature": "fn map<B, F: FnMut(Self::Item) -> B>(self, f: F) -> Map<Self, F>",
611
+ "description": "Takes a closure and creates an iterator that calls that closure on each element.",
612
+ "type": "method"
613
+ },
614
+ "filter": {
615
+ "signature": "fn filter<P: FnMut(&Self::Item) -> bool>(self, predicate: P) -> Filter<Self, P>",
616
+ "description": "Creates an iterator that only yields elements matching the predicate.",
617
+ "type": "method"
618
+ },
619
+ "fold": {
620
+ "signature": "fn fold<B, F: FnMut(B, Self::Item) -> B>(self, init: B, f: F) -> B",
621
+ "description": "Folds every element into an accumulator by applying a closure, returning the final result.",
622
+ "type": "method"
623
+ },
624
+ "collect": {
625
+ "signature": "fn collect<B: FromIterator<Self::Item>>(self) -> B",
626
+ "description": "Transforms an iterator into a collection. Can collect into Vec, HashMap, String, etc.",
627
+ "type": "method"
628
+ },
629
+ "enumerate": {
630
+ "signature": "fn enumerate(self) -> Enumerate<Self>",
631
+ "description": "Creates an iterator that yields `(index, value)` pairs.",
632
+ "type": "method"
633
+ },
634
+ "zip": {
635
+ "signature": "fn zip<U: IntoIterator>(self, other: U) -> Zip<Self, U::IntoIter>",
636
+ "description": "Zips two iterators into a single iterator of pairs.",
637
+ "type": "method"
638
+ },
639
+ "take": {
640
+ "signature": "fn take(self, n: usize) -> Take<Self>",
641
+ "description": "Creates an iterator that yields at most `n` elements.",
642
+ "type": "method"
643
+ },
644
+ "skip": {
645
+ "signature": "fn skip(self, n: usize) -> Skip<Self>",
646
+ "description": "Creates an iterator that skips the first `n` elements.",
647
+ "type": "method"
648
+ },
649
+ "chain": {
650
+ "signature": "fn chain<U: IntoIterator<Item = Self::Item>>(self, other: U) -> Chain<Self, U::IntoIter>",
651
+ "description": "Creates an iterator that chains two iterators together, yielding elements from the first then the second.",
652
+ "type": "method"
653
+ },
654
+ "flatten": {
655
+ "signature": "fn flatten(self) -> Flatten<Self> where Self::Item: IntoIterator",
656
+ "description": "Creates an iterator that flattens nested structure.",
657
+ "type": "method"
658
+ },
659
+ "any": {
660
+ "signature": "fn any<F: FnMut(Self::Item) -> bool>(&mut self, f: F) -> bool",
661
+ "description": "Tests if any element of the iterator matches a predicate.",
662
+ "type": "method"
663
+ },
664
+ "all": {
665
+ "signature": "fn all<F: FnMut(Self::Item) -> bool>(&mut self, f: F) -> bool",
666
+ "description": "Tests if every element of the iterator matches a predicate.",
667
+ "type": "method"
668
+ },
669
+ "find": {
670
+ "signature": "fn find<P: FnMut(&Self::Item) -> bool>(&mut self, predicate: P) -> Option<Self::Item>",
671
+ "description": "Searches for an element that satisfies the predicate.",
672
+ "type": "method"
673
+ },
674
+ "position": {
675
+ "signature": "fn position<P: FnMut(Self::Item) -> bool>(&mut self, predicate: P) -> Option<usize>",
676
+ "description": "Searches for an element, returning its index.",
677
+ "type": "method"
678
+ },
679
+ "count": {
680
+ "signature": "fn count(self) -> usize",
681
+ "description": "Consumes the iterator, counting the number of elements.",
682
+ "type": "method"
683
+ },
684
+ "sum": {
685
+ "signature": "fn sum<S: Sum<Self::Item>>(self) -> S",
686
+ "description": "Sums the elements of an iterator.",
687
+ "type": "method"
688
+ },
689
+ "product": {
690
+ "signature": "fn product<P: Product<Self::Item>>(self) -> P",
691
+ "description": "Iterates over the entire iterator, multiplying all elements.",
692
+ "type": "method"
693
+ },
694
+ "min": {
695
+ "signature": "fn min(self) -> Option<Self::Item> where Self::Item: Ord",
696
+ "description": "Returns the minimum element of an iterator.",
697
+ "type": "method"
698
+ },
699
+ "max": {
700
+ "signature": "fn max(self) -> Option<Self::Item> where Self::Item: Ord",
701
+ "description": "Returns the maximum element of an iterator.",
702
+ "type": "method"
703
+ },
704
+ "cloned": {
705
+ "signature": "fn cloned<'a, T: 'a + Clone>(self) -> Cloned<Self> where Self: Iterator<Item = &'a T>",
706
+ "description": "Creates an iterator that clones all of its elements.",
707
+ "type": "method"
708
+ },
709
+ "copied": {
710
+ "signature": "fn copied<'a, T: 'a + Copy>(self) -> Copied<Self> where Self: Iterator<Item = &'a T>",
711
+ "description": "Creates an iterator that copies all of its elements.",
712
+ "type": "method"
713
+ },
714
+ "peekable": {
715
+ "signature": "fn peekable(self) -> Peekable<Self>",
716
+ "description": "Creates an iterator that can use the `peek` method to look at the next element without consuming it.",
717
+ "type": "method"
718
+ },
719
+ "rev": {
720
+ "signature": "fn rev(self) -> Rev<Self> where Self: DoubleEndedIterator",
721
+ "description": "Reverses an iterator's direction.",
722
+ "type": "method"
723
+ }
724
+ }
725
+ },
726
+ "Mutex": {
727
+ "signature": "pub struct Mutex<T: ?Sized>",
728
+ "description": "A mutual exclusion primitive useful for protecting shared data.",
729
+ "type": "struct",
730
+ "module": "std::sync",
731
+ "members": {
732
+ "new": {
733
+ "signature": "pub fn new(t: T) -> Mutex<T>",
734
+ "description": "Creates a new mutex in an unlocked state.",
735
+ "type": "method",
736
+ "returns": "Mutex<T>"
737
+ },
738
+ "lock": {
739
+ "signature": "pub fn lock(&self) -> LockResult<MutexGuard<'_, T>>",
740
+ "description": "Acquires a mutex, blocking the current thread until it can.",
741
+ "type": "method",
742
+ "returns": "LockResult<MutexGuard<T>>"
743
+ },
744
+ "try_lock": {
745
+ "signature": "pub fn try_lock(&self) -> TryLockResult<MutexGuard<'_, T>>",
746
+ "description": "Attempts to acquire without blocking.",
747
+ "type": "method",
748
+ "returns": "TryLockResult<MutexGuard<T>>"
749
+ },
750
+ "into_inner": {
751
+ "signature": "pub fn into_inner(self) -> LockResult<T>",
752
+ "description": "Consumes this mutex, returning the underlying data.",
753
+ "type": "method",
754
+ "returns": "LockResult<T>"
755
+ }
756
+ }
757
+ },
758
+ "File": {
759
+ "signature": "pub struct File",
760
+ "description": "A reference to an open file on the filesystem.",
761
+ "type": "struct",
762
+ "module": "std::fs",
763
+ "members": {
764
+ "open": {
765
+ "signature": "pub fn open<P: AsRef<Path>>(path: P) -> io::Result<File>",
766
+ "description": "Opens a file in read-only mode.",
767
+ "type": "method",
768
+ "returns": "io::Result<File>"
769
+ },
770
+ "create": {
771
+ "signature": "pub fn create<P: AsRef<Path>>(path: P) -> io::Result<File>",
772
+ "description": "Opens a file in write-only mode, creating or truncating.",
773
+ "type": "method",
774
+ "returns": "io::Result<File>"
775
+ },
776
+ "read_to_string": {
777
+ "signature": "pub fn read_to_string(path: impl AsRef<Path>) -> io::Result<String>",
778
+ "description": "Read the entire contents of a file into a string.",
779
+ "type": "method",
780
+ "returns": "io::Result<String>"
781
+ },
782
+ "write": {
783
+ "signature": "pub fn write(path: impl AsRef<Path>, contents: impl AsRef<[u8]>) -> io::Result<()>",
784
+ "description": "Write a slice as the entire contents of a file.",
785
+ "type": "method",
786
+ "returns": "io::Result<()>"
787
+ },
788
+ "metadata": {
789
+ "signature": "pub fn metadata(&self) -> io::Result<Metadata>",
790
+ "description": "Queries metadata about the file.",
791
+ "type": "method",
792
+ "returns": "io::Result<Metadata>"
793
+ }
794
+ }
795
+ },
796
+ "Path": {
797
+ "signature": "pub struct Path",
798
+ "description": "A slice of a path. This type supports inspection and manipulation of paths.",
799
+ "type": "struct",
800
+ "module": "std::path",
801
+ "members": {
802
+ "new": {
803
+ "signature": "pub fn new<S: AsRef<OsStr> + ?Sized>(s: &S) -> &Path",
804
+ "description": "Creates a new Path from a string.",
805
+ "type": "method",
806
+ "returns": "&Path"
807
+ },
808
+ "exists": {
809
+ "signature": "pub fn exists(&self) -> bool",
810
+ "description": "Returns true if the path points at an existing entity.",
811
+ "type": "method",
812
+ "returns": "bool"
813
+ },
814
+ "is_file": {
815
+ "signature": "pub fn is_file(&self) -> bool",
816
+ "description": "Returns true if the path is an existing regular file.",
817
+ "type": "method",
818
+ "returns": "bool"
819
+ },
820
+ "is_dir": {
821
+ "signature": "pub fn is_dir(&self) -> bool",
822
+ "description": "Returns true if the path is an existing directory.",
823
+ "type": "method",
824
+ "returns": "bool"
825
+ },
826
+ "extension": {
827
+ "signature": "pub fn extension(&self) -> Option<&OsStr>",
828
+ "description": "Extracts the extension.",
829
+ "type": "method",
830
+ "returns": "Option<&OsStr>"
831
+ },
832
+ "file_name": {
833
+ "signature": "pub fn file_name(&self) -> Option<&OsStr>",
834
+ "description": "Returns the final component of the Path.",
835
+ "type": "method",
836
+ "returns": "Option<&OsStr>"
837
+ },
838
+ "parent": {
839
+ "signature": "pub fn parent(&self) -> Option<&Path>",
840
+ "description": "Returns the Path without its final component.",
841
+ "type": "method",
842
+ "returns": "Option<&Path>"
843
+ },
844
+ "join": {
845
+ "signature": "pub fn join<P: AsRef<Path>>(&self, path: P) -> PathBuf",
846
+ "description": "Creates an owned PathBuf with path adjoined.",
847
+ "type": "method",
848
+ "returns": "PathBuf"
849
+ }
850
+ }
851
+ }
852
+ }
207
853
  }