ferritin 0.8.0

Human-friendly CLI for browsing Rust documentation
---
source: ferritin/src/tests.rs
expression: "render_for_tests(Commands::search(\"generic struct\"), OutputMode :: TestMode)"
---
<title>Search results for '<emphasis>generic struct</emphasis>'</title>
<list>
  <item><p>
fixture-crate::GenericStruct  (Struct) - score: 100 (relevance: 100, authority: 0)</p>
<truncated level="single-line"><p>
A generic struct for testing multi-paragraph documentation.</p>
This struct and provides a <elided chars="401"/></truncated>
</item>
  <item><p>
alloc::borrow::Borrow  (Trait) - score: 91 (relevance: 85, authority: 7)</p>
<truncated level="single-line"><p>
A trait for borrowing data.</p>
In Rust, it is common to provide different different use cases. For instance, storage location value can be specifically chosen as appropriate for pointer types such as <inline-code>Box<T></inline-code> or <inline-code>Rc<T></inline-code>. Beyond these generic wrappers that can be used with any type, some types facets providing potentially costly functionality. type is <inline-code>String</inline-code> which adds the ability to extend a string to the <inline-code>str</inline-code>. This requires keeping additional information simple, immutable string. <elided chars="5060"/></truncated>
</item>
  <item><p>
core::borrow::Borrow  (Trait) - score: 85 (relevance: 85, authority: 0)</p>
<truncated level="single-line"><p>
A trait for borrowing data.</p>
In Rust, it is common to provide different different use cases. For instance, storage location value can be specifically chosen as appropriate for pointer types such as <inline-code>Box<T></inline-code> or <inline-code>Rc<T></inline-code>. Beyond these generic wrappers that can be used with any type, some types facets providing potentially costly functionality. type is <inline-code>String</inline-code> which adds the ability to extend a string to the <inline-code>str</inline-code>. This requires keeping additional information simple, immutable string. <elided chars="5060"/></truncated>
</item>
  <item><p>
std::borrow::Borrow  (Trait) - score: 85 (relevance: 85, authority: 0)</p>
<truncated level="single-line"><p>
A trait for borrowing data.</p>
In Rust, it is common to provide different different use cases. For instance, storage location value can be specifically chosen as appropriate for pointer types such as <inline-code>Box<T></inline-code> or <inline-code>Rc<T></inline-code>. Beyond these generic wrappers that can be used with any type, some types facets providing potentially costly functionality. type is <inline-code>String</inline-code> which adds the ability to extend a string to the <inline-code>str</inline-code>. This requires keeping additional information simple, immutable string. <elided chars="5060"/></truncated>
</item>
  <item><p>
core::clone::Clone  (Trait) - score: 83 (relevance: 82, authority: 1)</p>
<truncated level="single-line"><p>
A common trait that allows explicit creation of a duplicate value.</p>
Calling <inline-code>clone</inline-code> always However, for the new value See <inline-code>Clone::clone</inline-code> for more <elided chars="4423"/></truncated>
</item>
  <item><p>
std::clone::Clone  (Trait) - score: 83 (relevance: 82, authority: 1)</p>
<truncated level="single-line"><p>
A common trait that allows explicit creation of a duplicate value.</p>
Calling <inline-code>clone</inline-code> always However, for the new value See <inline-code>Clone::clone</inline-code> for more <elided chars="4423"/></truncated>
</item>
  <item><p>
core::ops::Deref  (Trait) - score: 80 (relevance: 79, authority: 1)</p>
<truncated level="single-line"><p>
Used for immutable dereferencing operations, like <inline-code>*v</inline-code>.</p>
In addition to being used (unary) <inline-code>*</inline-code> operator in immutable<inline-code>Deref</inline-code> is also used implicitly by the compiler in many "<inline-code>Deref</inline-code> coercion". In mutable contexts, <inline-code>DerefMut</inline-code> is used and mutable deref coercion <elided chars="4481"/></truncated>
</item>
  <item><p>
std::ops::Deref  (Trait) - score: 80 (relevance: 79, authority: 1)</p>
<truncated level="single-line"><p>
Used for immutable dereferencing operations, like <inline-code>*v</inline-code>.</p>
In addition to being used (unary) <inline-code>*</inline-code> operator in immutable<inline-code>Deref</inline-code> is also used implicitly by the compiler in many "<inline-code>Deref</inline-code> coercion". In mutable contexts, <inline-code>DerefMut</inline-code> is used and mutable deref coercion <elided chars="4481"/></truncated>
</item>
  <item><p>
fixture-crate::GenericEnum  (Enum) - score: 77 (relevance: 58, authority: 33)</p>
<truncated level="single-line"><p>
A generic enum for testing</p>
<p>
See also <inline-code>crate::TestEnum</inline-code></p>
</truncated>
</item>
  <item><p>
core::mem::ManuallyDrop  (Struct) - score: 77 (relevance: 76, authority: 1)</p>
<truncated level="single-line">A wrapper to inhibit the compiler from automatically calling <inline-code>T</inline-code>’s destructor. This wrapper is 0-cost. <elided chars="4225"/></truncated>
</item>
</list>