ferritin 0.8.0

Human-friendly CLI for browsing Rust documentation
---
source: ferritin/src/tests.rs
expression: "render_interactive_for_tests(Commands::search(\"generic struct\"))"
---
"   Search results for 'generic struct'                                          "
"   ════════════════════════════════════════════════════════════════════════════ "
"                                                                                "
"     ◦ fixture-crate::GenericStruct  (Struct) - score: 100 (relevance: 100,     "
"       authority: 0)                                                            "
"     │ A generic struct for testing multi-paragraph documentation.              "
"     │                                                                          "
"     │ This struct demonstrates how generics work with complex type bounds and  "
"     │ provides a comprehensive example of the generic system in Rust.          "
"     ╰─[...]                                                                    "
"                                                                                "
"     ◦ alloc::borrow::Borrow  (Trait) - score: 91 (relevance: 85, authority: 7) "
"     │ A trait for borrowing data.                                              "
"     │                                                                          "
"     │ In Rust, it is common to provide different representations of a type for "
"     │  different use cases. For instance, storage location and management for  "
"     │ a value can be specifically chosen as appropriate for a particular use   "
"     │ via pointer types such as Box<T> or Rc<T>. Beyond these generic wrappers "
"     │ that can be used with any type, some types provide optional facets       "
"     │ providing potentially costly functionality. An example for such a type   "
"     │ is String which adds the ability to extend a string to the basic str.    "
"     │ This requires keeping additional information unnecessary for a simple,   "
"     │ immutable string.                                                        "
"     ╰─[...]                                                                    "
"                                                                                "
"     ◦ core::borrow::Borrow  (Trait) - score: 85 (relevance: 85, authority: 0)  "
"     │ A trait for borrowing data.                                              "
"     │                                                                          "
"     │ In Rust, it is common to provide different representations of a type for "
"     │  different use cases. For instance, storage location and management for  "
"     │ a value can be specifically chosen as appropriate for a particular use   "
"     │ via pointer types such as Box<T> or Rc<T>. Beyond these generic wrappers "
"     │ that can be used with any type, some types provide optional facets       "
"     │ providing potentially costly functionality. An example for such a type   "
"     │ is String which adds the ability to extend a string to the basic str.    "
"     │ This requires keeping additional information unnecessary for a simple,   "
"     │ immutable string.                                                        "
"     ╰─[...]                                                                    "
"                                                                                "
"     ◦ std::borrow::Borrow  (Trait) - score: 85 (relevance: 85, authority: 0)   "
"     │ A trait for borrowing data.                                              "
"     │                                                                          "
"     │ In Rust, it is common to provide different representations of a type for "
"     │  different use cases. For instance, storage location and management for  "
"     │ a value can be specifically chosen as appropriate for a particular use   "
"     │ via pointer types such as Box<T> or Rc<T>. Beyond these generic wrappers "
"     │ that can be used with any type, some types provide optional facets       "
"     │ providing potentially costly functionality. An example for such a type   "
"     │ is String which adds the ability to extend a string to the basic str.    "
"     │ This requires keeping additional information unnecessary for a simple,   "
"     │ immutable string.                                                        "
"     ╰─[...]                                                                    "
"                                                                                "
"     ◦ core::clone::Clone  (Trait) - score: 83 (relevance: 82, authority: 1)    "
"     │ A common trait that allows explicit creation of a duplicate value.       "
"     │                                                                          "
"     │ Calling clone always produces a new value. However, for types that are   "
"     │ references to other data (such as smart pointers or references), the     "
"     │ new value may still point to the same underlying data, rather than       "
"     │ duplicating it. See Clone::clone for more details.                       "
"     ╰─[...]                                                                    "
"                                                                                "
"     ◦ std::clone::Clone  (Trait) - score: 83 (relevance: 82, authority: 1)     "
"     │ A common trait that allows explicit creation of a duplicate value.       "
"     │                                                                          "
"     │ Calling clone always produces a new value. However, for types that are   "
"     │ references to other data (such as smart pointers or references), the     "
"     │ new value may still point to the same underlying data, rather than       "
"     │ duplicating it. See Clone::clone for more details.                       "
"     ╰─[...]                                                                    "
"                                                                                "
"     ◦ core::ops::Deref  (Trait) - score: 80 (relevance: 79, authority: 1)      "
"     │ Used for immutable dereferencing operations, like *v.                    "
"     │                                                                          "
"     │ In addition to being used for explicit dereferencing operations with the "
"     │  (unary) * operator in immutable contexts, Deref is also used implicitly "
"     │  by the compiler in many circumstances. This mechanism is called "Deref  "
"     │ coercion". In mutable contexts, DerefMut is used and mutable deref       "
"     │ coercion similarly occurs.                                               "
"     ╰─[...]                                                                    "
"                                                                                "
"     ◦ std::ops::Deref  (Trait) - score: 80 (relevance: 79, authority: 1)       "
"     │ Used for immutable dereferencing operations, like *v.                    "
"     │                                                                          "
"     │ In addition to being used for explicit dereferencing operations with the "
"     │  (unary) * operator in immutable contexts, Deref is also used implicitly "
"     │  by the compiler in many circumstances. This mechanism is called "Deref  "
"     │ coercion". In mutable contexts, DerefMut is used and mutable deref       "
"     │ coercion similarly occurs.                                               "
"     ╰─[...]                                                                    "
"                                                                                "
"     ◦ fixture-crate::GenericEnum  (Enum) - score: 77 (relevance: 58,           "
"       authority: 33)                                                           "
"       A generic enum for testing                                               "
"                                                                                "
"       See also crate::TestEnum                                                 "
"                                                                                "
"     ◦ core::mem::ManuallyDrop  (Struct) - score: 77 (relevance: 76,            "
"       authority: 1)                                                            "
"     │ A wrapper to inhibit the compiler from automatically calling T’s         "
"     │ destructor. This wrapper is 0-cost.                                      "
"     │                                                                          "
"     │ ManuallyDrop<T> is guaranteed to have the same layout and bit validity   "
"     │ as T, and is subject to the same layout optimizations as T. As a         "
"     │ consequence, it has no effect on the assumptions that the compiler makes "
"     │  about its contents. For example, initializing a ManuallyDrop<&mut T>    "
"     │ with mem::zeroed is undefined behavior. If you need to handle            "
"     │ uninitialized data, use MaybeUninit<T> instead.                          "
"     ╰─[...]                                                                    "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"                                                                                "
"▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂"
"   ferritin - q:quit ?:help ←/→:history g:go s:search l:list c:code             "