@enjoys/context-engine 1.0.0 → 1.0.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 (112) hide show
  1. package/data/commands/adb.json +322 -0
  2. package/data/commands/alembic.json +301 -0
  3. package/data/commands/artisan.json +277 -0
  4. package/data/commands/atlas.json +426 -0
  5. package/data/commands/auth0.json +648 -0
  6. package/data/commands/bat.json +84 -0
  7. package/data/commands/btop.json +59 -0
  8. package/data/commands/bundle.json +321 -0
  9. package/data/commands/composer.json +507 -0
  10. package/data/commands/dart.json +216 -0
  11. package/data/commands/dbmate.json +257 -0
  12. package/data/commands/docker-compose.json +384 -0
  13. package/data/commands/drizzle-kit.json +217 -0
  14. package/data/commands/expo.json +65 -0
  15. package/data/commands/fastlane.json +243 -0
  16. package/data/commands/fd.json +86 -0
  17. package/data/commands/flutter.json +298 -0
  18. package/data/commands/flyway.json +261 -0
  19. package/data/commands/fzf.json +103 -0
  20. package/data/commands/gem.json +267 -0
  21. package/data/commands/htop.json +56 -0
  22. package/data/commands/jq.json +100 -0
  23. package/data/commands/k9s.json +62 -0
  24. package/data/commands/linux.json +3007 -0
  25. package/data/commands/liquibase.json +399 -0
  26. package/data/commands/manifest.json +619 -0
  27. package/data/commands/minikube.json +60 -0
  28. package/data/commands/ng.json +64 -0
  29. package/data/commands/nuxt.json +60 -0
  30. package/data/commands/nvim.json +91 -0
  31. package/data/commands/php.json +157 -0
  32. package/data/commands/pm2.json +259 -0
  33. package/data/commands/pod.json +175 -0
  34. package/data/commands/prisma.json +257 -0
  35. package/data/commands/rails.json +372 -0
  36. package/data/commands/rake.json +360 -0
  37. package/data/commands/react-native.json +57 -0
  38. package/data/commands/rg.json +103 -0
  39. package/data/commands/rspec.json +257 -0
  40. package/data/commands/ruby.json +108 -0
  41. package/data/commands/screen.json +101 -0
  42. package/data/commands/sequelize.json +342 -0
  43. package/data/commands/snyk.json +442 -0
  44. package/data/commands/sonar-scanner.json +219 -0
  45. package/data/commands/stripe.json +314 -0
  46. package/data/commands/symfony.json +449 -0
  47. package/data/commands/tmux.json +197 -0
  48. package/data/commands/top.json +61 -0
  49. package/data/commands/trivy.json +367 -0
  50. package/data/commands/twilio.json +382 -0
  51. package/data/commands/typeorm.json +262 -0
  52. package/data/commands/vim.json +85 -0
  53. package/data/commands/vue.json +60 -0
  54. package/data/commands/wp.json +857 -0
  55. package/data/commands/xcodebuild.json +141 -0
  56. package/data/commands/yq.json +57 -0
  57. package/data/completion/bash.json +1184 -0
  58. package/data/completion/c.json +1067 -0
  59. package/data/completion/cpp.json +824 -0
  60. package/data/completion/csharp.json +860 -0
  61. package/data/completion/dockerfile.json +536 -0
  62. package/data/completion/go.json +1346 -0
  63. package/data/completion/html.json +806 -0
  64. package/data/completion/java.json +1112 -0
  65. package/data/completion/javascript.json +914 -0
  66. package/data/completion/lua.json +968 -0
  67. package/data/completion/php.json +1535 -0
  68. package/data/completion/python.json +1427 -0
  69. package/data/completion/ruby.json +1531 -0
  70. package/data/completion/rust.json +698 -0
  71. package/data/completion/sql.json +887 -0
  72. package/data/completion/toml.json +428 -0
  73. package/data/completion/typescript.json +338 -0
  74. package/data/completion/yaml.json +563 -0
  75. package/data/defination/bash.json +565 -0
  76. package/data/defination/c.json +865 -0
  77. package/data/defination/cpp.json +348 -0
  78. package/data/defination/csharp.json +144 -0
  79. package/data/defination/dockerfile.json +113 -0
  80. package/data/defination/go.json +561 -0
  81. package/data/defination/html.json +559 -0
  82. package/data/defination/java.json +184 -0
  83. package/data/defination/javascript.json +265 -0
  84. package/data/defination/lua.json +181 -0
  85. package/data/defination/php.json +726 -0
  86. package/data/defination/python.json +717 -0
  87. package/data/defination/ruby.json +670 -0
  88. package/data/defination/rust.json +207 -0
  89. package/data/defination/sql.json +473 -0
  90. package/data/defination/toml.json +251 -0
  91. package/data/defination/typescript.json +29 -0
  92. package/data/defination/yaml.json +197 -0
  93. package/data/hover/bash.json +245 -0
  94. package/data/hover/c.json +265 -0
  95. package/data/hover/cpp.json +210 -0
  96. package/data/hover/csharp.json +290 -0
  97. package/data/hover/dockerfile.json +145 -0
  98. package/data/hover/go.json +580 -0
  99. package/data/hover/html.json +250 -0
  100. package/data/hover/java.json +395 -0
  101. package/data/hover/javascript.json +330 -0
  102. package/data/hover/lua.json +265 -0
  103. package/data/hover/php.json +300 -0
  104. package/data/hover/python.json +380 -0
  105. package/data/hover/ruby.json +265 -0
  106. package/data/hover/rust.json +275 -0
  107. package/data/hover/sql.json +230 -0
  108. package/data/hover/toml.json +145 -0
  109. package/data/hover/typescript.json +120 -0
  110. package/data/hover/yaml.json +165 -0
  111. package/data/manifest.json +242 -0
  112. package/package.json +1 -1
@@ -0,0 +1,207 @@
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
+ }
207
+ }