You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
5.5 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta name="generator" content="rustdoc">
  7. <meta name="description" content="API documentation for the Rust `Number` trait in crate `complex`.">
  8. <meta name="keywords" content="rust, rustlang, rust-lang, Number">
  9. <title>complex::Number - Rust</title>
  10. <link rel="stylesheet" type="text/css" href="../main.css">
  11. </head>
  12. <body class="rustdoc">
  13. <!--[if lte IE 8]>
  14. <div class="warning">
  15. This old browser is unsupported and will most likely display funky
  16. things.
  17. </div>
  18. <![endif]-->
  19. <section class="sidebar">
  20. <p class='location'><a href='index.html'>complex</a></p><script>window.sidebarCurrent = {name: 'Number', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script>
  21. </section>
  22. <nav class="sub">
  23. <form class="search-form js-only">
  24. <div class="search-container">
  25. <input class="search-input" name="search"
  26. autocomplete="off"
  27. placeholder="Click or press 'S' to search, '?' for more options..."
  28. type="search">
  29. </div>
  30. </form>
  31. </nav>
  32. <section id='main' class="content trait">
  33. <h1 class='fqn'><span class='in-band'>Trait <a href='index.html'>complex</a>::<wbr><a class='trait' href=''>Number</a></span><span class='out-of-band'><span id='render-detail'>
  34. <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
  35. [<span class='inner'>&#x2212;</span>]
  36. </a>
  37. </span><a id='src-11' class='srclink' href='../src/complex/lib.rs.html#9-15' title='goto source code'>[src]</a></span></h1>
  38. <pre class='rust trait'>pub trait Number: <a class='trait' href='http://doc.rust-lang.org/nightly/core/ops/trait.Add.html' title='core::ops::Add'>Add</a>&lt;Output=Self&gt; + <a class='trait' href='http://doc.rust-lang.org/nightly/core/ops/trait.Div.html' title='core::ops::Div'>Div</a>&lt;Output=Self&gt; + <a class='trait' href='http://doc.rust-lang.org/nightly/core/ops/trait.Mul.html' title='core::ops::Mul'>Mul</a>&lt;Output=Self&gt; + <a class='trait' href='http://doc.rust-lang.org/nightly/core/ops/trait.Neg.html' title='core::ops::Neg'>Neg</a>&lt;Output=Self&gt; + <a class='trait' href='http://doc.rust-lang.org/nightly/core/ops/trait.Sub.html' title='core::ops::Sub'>Sub</a>&lt;Output=Self&gt; + <a class='trait' href='http://doc.rust-lang.org/nightly/core/marker/trait.Copy.html' title='core::marker::Copy'>Copy</a> + <a class='trait' href='http://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> + <a class='trait' href='http://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html' title='core::cmp::PartialEq'>PartialEq</a> { }</pre><div class='docblock'><p>A number.</p>
  39. </div>
  40. <h2 id='implementors'>Implementors</h2>
  41. <ul class='item-list' id='implementors-list'>
  42. <li><code>impl <a class='trait' href='../complex/trait.Number.html' title='complex::Number'>Number</a> for <a class='struct' href='../complex/struct.c32.html' title='complex::c32'>c32</a></code></li>
  43. <li><code>impl <a class='trait' href='../complex/trait.Number.html' title='complex::Number'>Number</a> for <a href='http://doc.rust-lang.org/nightly/std/primitive.f32.html'>f32</a></code></li>
  44. <li><code>impl <a class='trait' href='../complex/trait.Number.html' title='complex::Number'>Number</a> for <a class='struct' href='../complex/struct.c64.html' title='complex::c64'>c64</a></code></li>
  45. <li><code>impl <a class='trait' href='../complex/trait.Number.html' title='complex::Number'>Number</a> for <a href='http://doc.rust-lang.org/nightly/std/primitive.f64.html'>f64</a></code></li>
  46. </ul><script type="text/javascript" async
  47. src="../implementors/complex/trait.Number.js">
  48. </script></section>
  49. <section id='search' class="content hidden"></section>
  50. <section class="footer"></section>
  51. <div id="help" class="hidden">
  52. <div class="shortcuts">
  53. <h1>Keyboard shortcuts</h1>
  54. <dl>
  55. <dt>?</dt>
  56. <dd>Show this help dialog</dd>
  57. <dt>S</dt>
  58. <dd>Focus the search field</dd>
  59. <dt>&larrb;</dt>
  60. <dd>Move up in search results</dd>
  61. <dt>&rarrb;</dt>
  62. <dd>Move down in search results</dd>
  63. <dt>&#9166;</dt>
  64. <dd>Go to active search result</dd>
  65. </dl>
  66. </div>
  67. <div class="infos">
  68. <h1>Search tricks</h1>
  69. <p>
  70. Prefix searches with a type followed by a colon (e.g.
  71. <code>fn:</code>) to restrict the search to a given type.
  72. </p>
  73. <p>
  74. Accepted types are: <code>fn</code>, <code>mod</code>,
  75. <code>struct</code>, <code>enum</code>,
  76. <code>trait</code>, <code>typedef</code> (or
  77. <code>tdef</code>).
  78. </p>
  79. <p>
  80. Search functions by type signature (e.g.
  81. <code>vec -> usize</code>)
  82. </p>
  83. </div>
  84. </div>
  85. <script>
  86. window.rootPath = "../";
  87. window.currentCrate = "complex";
  88. window.playgroundUrl = "";
  89. </script>
  90. <script src="../jquery.js"></script>
  91. <script src="../main.js"></script>
  92. <script async src="../search-index.js"></script>
  93. </body>
  94. </html>