Browse Source

Deploy QCGPU/qcgpu-rust to github.com/QCGPU/qcgpu-rust.git:gh-pages

Deployment Bot (from Travis CI) 6 years ago
parent
commit
51b32d626b
55 changed files with 565 additions and 1566 deletions
  1. 20 45
      book/algorithms/algorithms.html
  2. 20 45
      book/algorithms/bernstein-vazirani.html
  3. 20 45
      book/algorithms/deutsch-jozsa.html
  4. 20 45
      book/algorithms/grover.html
  5. 20 45
      book/algorithms/shor.html
  6. 20 45
      book/algorithms/super-dense.html
  7. 48 43
      book/book.css
  8. 10 7
      book/book.js
  9. 20 45
      book/getting-started.html
  10. 20 45
      book/index.html
  11. 26 51
      book/print.html
  12. 20 45
      book/qcgpu.html
  13. 51 53
      book/searcher.js
  14. 1 1
      book/searchindex.js
  15. 20 45
      book/user-guide/decoherence.html
  16. 20 45
      book/user-guide/examples.html
  17. 20 45
      book/user-guide/gates.html
  18. 20 45
      book/user-guide/operations.html
  19. 20 45
      book/user-guide/registers.html
  20. 20 45
      book/user-guide/user-guide.html
  21. 0 10
      doc/bitflags/example_generated/Flags.t.html
  22. 0 140
      doc/bitflags/example_generated/index.html
  23. 0 1
      doc/bitflags/example_generated/sidebar-items.js
  24. 0 272
      doc/bitflags/example_generated/struct.Flags.html
  25. 2 12
      doc/bitflags/index.html
  26. 1 1
      doc/bitflags/sidebar-items.js
  27. 0 1
      doc/implementors/core/clone/trait.Clone.js
  28. 0 1
      doc/implementors/core/cmp/trait.Eq.js
  29. 0 1
      doc/implementors/core/cmp/trait.Ord.js
  30. 0 1
      doc/implementors/core/cmp/trait.PartialEq.js
  31. 0 1
      doc/implementors/core/cmp/trait.PartialOrd.js
  32. 0 1
      doc/implementors/core/fmt/trait.Binary.js
  33. 0 1
      doc/implementors/core/fmt/trait.Debug.js
  34. 0 1
      doc/implementors/core/fmt/trait.LowerHex.js
  35. 0 1
      doc/implementors/core/fmt/trait.Octal.js
  36. 0 1
      doc/implementors/core/fmt/trait.UpperHex.js
  37. 0 1
      doc/implementors/core/hash/trait.Hash.js
  38. 0 1
      doc/implementors/core/iter/traits/trait.Extend.js
  39. 0 1
      doc/implementors/core/iter/traits/trait.FromIterator.js
  40. 0 1
      doc/implementors/core/marker/trait.Copy.js
  41. 0 1
      doc/implementors/core/ops/arith/trait.Sub.js
  42. 0 1
      doc/implementors/core/ops/arith/trait.SubAssign.js
  43. 0 1
      doc/implementors/core/ops/bit/trait.BitAnd.js
  44. 0 1
      doc/implementors/core/ops/bit/trait.BitAndAssign.js
  45. 0 1
      doc/implementors/core/ops/bit/trait.BitOr.js
  46. 0 1
      doc/implementors/core/ops/bit/trait.BitOrAssign.js
  47. 0 1
      doc/implementors/core/ops/bit/trait.BitXor.js
  48. 0 1
      doc/implementors/core/ops/bit/trait.BitXorAssign.js
  49. 0 1
      doc/implementors/core/ops/bit/trait.Not.js
  50. 61 61
      doc/ocl/traits/trait.OclPrm.html
  51. 12 12
      doc/ocl/traits/trait.OclScl.html
  52. 47 47
      doc/ocl/traits/trait.OclVec.html
  53. 2 2
      doc/search-index.js
  54. 0 151
      doc/src/bitflags/example_generated.rs.html
  55. 4 4
      doc/src/bitflags/lib.rs.html

+ 20 - 45
book/algorithms/algorithms.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -18,36 +18,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -72,7 +56,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -97,7 +81,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -129,13 +113,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -191,17 +177,7 @@
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
@@ -218,12 +194,11 @@
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 20 - 45
book/algorithms/bernstein-vazirani.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -18,36 +18,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -72,7 +56,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -97,7 +81,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -129,13 +113,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -242,17 +228,7 @@ fn main() {
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
@@ -269,12 +245,11 @@ fn main() {
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 20 - 45
book/algorithms/deutsch-jozsa.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -18,36 +18,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -72,7 +56,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -97,7 +81,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -129,13 +113,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -255,17 +241,7 @@ fn main() {
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
@@ -282,12 +258,11 @@ fn main() {
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 20 - 45
book/algorithms/grover.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -18,36 +18,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -72,7 +56,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -97,7 +81,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -129,13 +113,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -312,17 +298,7 @@ fn get_bit(number: i32, n: i32) -&gt; i32 {
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
@@ -339,12 +315,11 @@ fn get_bit(number: i32, n: i32) -&gt; i32 {
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 20 - 45
book/algorithms/shor.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -18,36 +18,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -72,7 +56,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -97,7 +81,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -129,13 +113,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -274,17 +260,7 @@ fn find_order(a: i32, n: i32) -&gt; i32 {
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
@@ -301,12 +277,11 @@ fn find_order(a: i32, n: i32) -&gt; i32 {
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 20 - 45
book/algorithms/super-dense.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -18,36 +18,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -72,7 +56,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -97,7 +81,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -129,13 +113,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -233,17 +219,7 @@ fn main() {
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
@@ -260,12 +236,11 @@ fn main() {
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 48 - 43
book/book.css

@@ -81,11 +81,13 @@ table thead td {
   box-sizing: border-box;
   -webkit-overflow-scrolling: touch;
   overscroll-behavior-y: contain;
-  -webkit-transition: -webkit-transform 0.5s;
-  -moz-transition: -moz-transform 0.5s;
-  -o-transition: -o-transform 0.5s;
-  -ms-transition: -ms-transform 0.5s;
-  transition: transform 0.5s;
+}
+.js .sidebar {
+  -webkit-transition: -webkit-transform 0.3s;
+  -moz-transition: -moz-transform 0.3s;
+  -o-transition: -o-transform 0.3s;
+  -ms-transition: -ms-transform 0.3s;
+  transition: transform 0.3s;
 }
 .sidebar code {
   line-height: 2em;
@@ -137,42 +139,44 @@ table thead td {
   white-space: nowrap;
 }
 .page-wrapper {
-  left: 0;
-  position: absolute;
-  right: 0;
-  top: 0;
-  bottom: 0;
   -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
   box-sizing: border-box;
-  -webkit-transition: padding-left 0.5s, margin-left 0.5s, left 0.5s;
-  -moz-transition: padding-left 0.5s, margin-left 0.5s, left 0.5s;
-  -o-transition: padding-left 0.5s, margin-left 0.5s, left 0.5s;
-  -ms-transition: padding-left 0.5s, margin-left 0.5s, left 0.5s;
-  transition: padding-left 0.5s, margin-left 0.5s, left 0.5s;
+}
+.js .page-wrapper {
+  -webkit-transition: margin-left 0.3s ease, -webkit-transform 0.3s ease;
+  -moz-transition: margin-left 0.3s ease, -moz-transform 0.3s ease;
+  -o-transition: margin-left 0.3s ease, -o-transform 0.3s ease;
+  -ms-transition: margin-left 0.3s ease, -ms-transform 0.3s ease;
+  transition: margin-left 0.3s ease, transform 0.3s ease;
 }
 .sidebar-visible .page-wrapper {
-  left: 300px;
+  -webkit-transform: translateX(300px);
+  -moz-transform: translateX(300px);
+  -o-transform: translateX(300px);
+  -ms-transform: translateX(300px);
+  transform: translateX(300px);
+}
+@media only screen and (min-width: 620px) {
+  .sidebar-visible .page-wrapper {
+    -webkit-transform: none;
+    -moz-transform: none;
+    -o-transform: none;
+    -ms-transform: none;
+    transform: none;
+    margin-left: 300px;
+  }
 }
 .page {
   outline: 0;
   padding: 0 15px;
 }
 .content {
-  position: relative;
-  top: 0;
-  bottom: 0;
   overflow-y: auto;
-  right: 0;
-  left: 0;
   padding: 0 15px;
   padding-bottom: 50px;
 }
-.sidebar-visible .content {
-  position: absolute;
-  top: 52px;
-}
-.content > main {
+.content main {
   margin-left: auto;
   margin-right: auto;
   max-width: 750px;
@@ -205,11 +209,13 @@ table thead td {
   -webkit-flex-wrap: wrap;
   -ms-flex-wrap: wrap;
   flex-wrap: wrap;
-  -webkit-transition: -webkit-transform 0.5s, border-bottom-color 0.5s;
-  -moz-transition: -moz-transform 0.5s, border-bottom-color 0.5s;
-  -o-transition: -o-transform 0.5s, border-bottom-color 0.5s;
-  -ms-transition: -ms-transform 0.5s, border-bottom-color 0.5s;
-  transition: transform 0.5s, border-bottom-color 0.5s;
+}
+.js #menu-bar > #menu-bar-sticky-container {
+  -webkit-transition: -webkit-transform 0.3s;
+  -moz-transition: -moz-transform 0.3s;
+  -o-transition: -o-transform 0.3s;
+  -ms-transition: -ms-transform 0.3s;
+  transition: transform 0.3s;
 }
 #menu-bar i,
 #menu-bar .icon-button {
@@ -217,15 +223,15 @@ table thead td {
   margin: 0 10px;
   z-index: 10;
   line-height: 50px;
+  cursor: pointer;
   -webkit-transition: color 0.5s;
   -moz-transition: color 0.5s;
   -o-transition: color 0.5s;
   -ms-transition: color 0.5s;
   transition: color 0.5s;
 }
-#menu-bar i:hover,
-#menu-bar .icon-button:hover {
-  cursor: pointer;
+#menu-bar #print-button {
+  margin: 0 15px;
 }
 html:not(.sidebar-visible) #menu-bar:not(:hover).folded > #menu-bar-sticky-container {
   -webkit-transform: translateY(-60px);
@@ -234,6 +240,9 @@ html:not(.sidebar-visible) #menu-bar:not(:hover).folded > #menu-bar-sticky-conta
   -ms-transform: translateY(-60px);
   transform: translateY(-60px);
 }
+.no-js .left-buttons {
+  display: none;
+}
 .menu-title {
   display: inline-block;
   font-weight: 200;
@@ -252,6 +261,8 @@ html:not(.sidebar-visible) #menu-bar:not(:hover).folded > #menu-bar-sticky-conta
   overflow: hidden;
   -o-text-overflow: ellipsis;
   text-overflow: ellipsis;
+}
+.js .menu-title {
   cursor: pointer;
 }
 .nav-chapters {
@@ -363,7 +374,6 @@ html:not(.sidebar-visible) #menu-bar:not(:hover).folded > #menu-bar-sticky-conta
 .light .content .header:link,
 .light .content .header:visited {
   color: #333;
-  pointer: cursor;
 }
 .light .content .header:link:hover,
 .light .content .header:visited:hover {
@@ -554,7 +564,6 @@ html:not(.sidebar-visible) #menu-bar:not(:hover).folded > #menu-bar-sticky-conta
 .coal .content .header:link,
 .coal .content .header:visited {
   color: #98a3ad;
-  pointer: cursor;
 }
 .coal .content .header:link:hover,
 .coal .content .header:visited:hover {
@@ -745,7 +754,6 @@ html:not(.sidebar-visible) #menu-bar:not(:hover).folded > #menu-bar-sticky-conta
 .navy .content .header:link,
 .navy .content .header:visited {
   color: #bcbdd0;
-  pointer: cursor;
 }
 .navy .content .header:link:hover,
 .navy .content .header:visited:hover {
@@ -936,7 +944,6 @@ html:not(.sidebar-visible) #menu-bar:not(:hover).folded > #menu-bar-sticky-conta
 .rust .content .header:link,
 .rust .content .header:visited {
   color: #262625;
-  pointer: cursor;
 }
 .rust .content .header:link:hover,
 .rust .content .header:visited:hover {
@@ -1127,7 +1134,6 @@ html:not(.sidebar-visible) #menu-bar:not(:hover).folded > #menu-bar-sticky-conta
 .ayu .content .header:link,
 .ayu .content .header:visited {
   color: #c5c5c5;
-  pointer: cursor;
 }
 .ayu .content .header:link:hover,
 .ayu .content .header:visited:hover {
@@ -1401,18 +1407,18 @@ mark {
   -o-transition: background-color 300ms linear;
   -ms-transition: background-color 300ms linear;
   transition: background-color 300ms linear;
+  cursor: pointer;
 }
-.fade-out {
+mark.fade-out {
   background-color: rgba(0,0,0,0) !important;
+  cursor: auto;
 }
 .searchbar-outer {
-  display: none;
   margin-left: auto;
   margin-right: auto;
   max-width: 750px;
 }
 #searchbar {
-  display: block;
   width: 100%;
   margin: 5px auto 0px auto;
   padding: 10px 16px;
@@ -1428,7 +1434,6 @@ mark {
   padding: 18px 0 0 5px;
 }
 .searchresults-outer {
-  display: none;
   margin-left: auto;
   margin-right: auto;
   max-width: 750px;

+ 10 - 7
book/book.js

@@ -1,3 +1,5 @@
+"use strict";
+
 // Fix back button cache problem
 window.onunload = function () { };
 
@@ -55,6 +57,7 @@ function playpen_text(playpen) {
         var txt = playpen_text(pre_block);
         var re = /extern\s+crate\s+([a-zA-Z_0-9]+)\s*;/g;
         var snippet_crates = [];
+        var item;
         while (item = re.exec(txt)) {
             snippet_crates.push(item[1]);
         }
@@ -175,7 +178,7 @@ function playpen_text(playpen) {
         buttons.innerHTML = "<button class=\"fa fa-expand\" title=\"Show hidden lines\" aria-label=\"Show hidden lines\"></button>";
 
         // add expand button
-        pre_block.prepend(buttons);
+        pre_block.insertBefore(buttons, pre_block.firstChild);
 
         pre_block.querySelector('.buttons').addEventListener('click', function (e) {
             if (e.target.classList.contains('fa-expand')) {
@@ -213,7 +216,7 @@ function playpen_text(playpen) {
             if (!buttons) {
                 buttons = document.createElement('div');
                 buttons.className = 'buttons';
-                pre_block.prepend(buttons);
+                pre_block.insertBefore(buttons, pre_block.firstChild);
             }
 
             var clipButton = document.createElement('button');
@@ -222,7 +225,7 @@ function playpen_text(playpen) {
             clipButton.setAttribute('aria-label', clipButton.title);
             clipButton.innerHTML = '<i class=\"tooltiptext\"></i>';
 
-            buttons.prepend(clipButton);
+            buttons.insertBefore(clipButton, buttons.firstChild);
         }
     });
 
@@ -233,7 +236,7 @@ function playpen_text(playpen) {
         if (!buttons) {
             buttons = document.createElement('div');
             buttons.className = 'buttons';
-            pre_block.prepend(buttons);
+            pre_block.insertBefore(buttons, pre_block.firstChild);
         }
 
         var runCodeButton = document.createElement('button');
@@ -248,8 +251,8 @@ function playpen_text(playpen) {
         copyCodeClipboardButton.title = 'Copy to clipboard';
         copyCodeClipboardButton.setAttribute('aria-label', copyCodeClipboardButton.title);
 
-        buttons.prepend(runCodeButton);
-        buttons.prepend(copyCodeClipboardButton);
+        buttons.insertBefore(runCodeButton, buttons.firstChild);
+        buttons.insertBefore(copyCodeClipboardButton, buttons.firstChild);
 
         runCodeButton.addEventListener('click', function (e) {
             run_rust_code(pre_block);
@@ -262,7 +265,7 @@ function playpen_text(playpen) {
             undoChangesButton.title = 'Undo changes';
             undoChangesButton.setAttribute('aria-label', undoChangesButton.title);
 
-            buttons.prepend(undoChangesButton);
+            buttons.insertBefore(undoChangesButton, buttons.firstChild);
 
             undoChangesButton.addEventListener('click', function () {
                 let editor = window.ace.edit(code_block);

+ 20 - 45
book/getting-started.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -18,36 +18,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -72,7 +56,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -97,7 +81,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -129,13 +113,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -204,17 +190,7 @@ qcgpu = &quot;0.1&quot;
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
@@ -231,12 +207,11 @@ qcgpu = &quot;0.1&quot;
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 20 - 45
book/index.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -17,36 +17,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -71,7 +55,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -96,7 +80,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -128,13 +112,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -189,17 +175,7 @@
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
@@ -216,12 +192,11 @@
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 26 - 51
book/print.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -18,36 +18,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -72,7 +56,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -97,7 +81,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -129,13 +113,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -789,21 +775,17 @@ fn main() {
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
         
+        <script type="text/javascript">
+            document.addEventListener('DOMContentLoaded', function() {
+                window.print();
+            })
+        </script>
+        
 
         
 
@@ -816,18 +798,11 @@ fn main() {
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-        <script>
-            document.addEventListener('DOMContentLoaded', function() {
-                window.print();
-            })
-        </script>
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 20 - 45
book/qcgpu.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -18,36 +18,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -72,7 +56,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -97,7 +81,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -129,13 +113,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -190,17 +176,7 @@
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
@@ -217,12 +193,11 @@
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 51 - 53
book/searcher.js

@@ -1,15 +1,17 @@
+"use strict";
 window.search = window.search || {};
 (function search(search) {
     // Search functionality
     //
     // You can use !hasFocus() to prevent keyhandling in your key
-    // event handlers while the user is typing his search.
+    // event handlers while the user is typing their search.
 
     if (!Mark || !elasticlunr) {
         return;
     }
     
-    var searchbar = document.getElementById('searchbar'),
+    var search_wrap = document.getElementById('search-wrapper'),
+        searchbar = document.getElementById('searchbar'),
         searchbar_outer = document.getElementById('searchbar-outer'),
         searchresults = document.getElementById('searchresults'),
         searchresults_outer = document.getElementById('searchresults-outer'),
@@ -18,11 +20,13 @@ window.search = window.search || {};
         content = document.getElementById('content'),
 
         searchindex = null,
+        resultsoptions = {
+            teaser_word_count: 30,
+            limit_results: 30,
+        },
         searchoptions = {
             bool: "AND",
             expand: true,
-            teaser_word_count: 30,
-            limit_results: 30,
             fields: {
                 title: {boost: 1},
                 body: {boost: 1},
@@ -185,7 +189,7 @@ window.search = window.search || {};
         }
 
         var window_weight = [];
-        var window_size = Math.min(weighted.length, searchoptions.teaser_word_count);
+        var window_size = Math.min(weighted.length, resultsoptions.teaser_word_count);
 
         var cur_sum = 0;
         for (var wordindex = 0; wordindex < window_size; wordindex++) {
@@ -236,15 +240,19 @@ window.search = window.search || {};
     }
 
     function init() {
+        resultsoptions = window.search.resultsoptions;
         searchoptions = window.search.searchoptions;
+        searchbar_outer = window.search.searchbar_outer;
         searchindex = elasticlunr.Index.load(window.search.index);
 
         // Set up events
         searchicon.addEventListener('click', function(e) { searchIconClickHandler(); }, false);
         searchbar.addEventListener('keyup', function(e) { searchbarKeyUpHandler(); }, false);
-        document.addEventListener('keydown', function (e) { globalKeyHandler(e); }, false);
+        document.addEventListener('keydown', function(e) { globalKeyHandler(e); }, false);
         // If the user uses the browser buttons, do the same as if a reload happened
         window.onpopstate = function(e) { doSearchOrMarkFromUrl(); };
+        // Suppress "submit" events so the page doesn't reload when the user presses Enter
+        document.addEventListener('submit', function(e) { e.preventDefault(); }, false);
 
         // If reloaded, do the search or mark again, depending on the current url parameters
         doSearchOrMarkFromUrl();
@@ -294,94 +302,84 @@ window.search = window.search || {};
     
     // Eventhandler for keyevents on `document`
     function globalKeyHandler(e) {
-        if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { return; }
+        if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.target.type === 'textarea') { return; }
 
-        if (e.keyCode == ESCAPE_KEYCODE) {
+        if (e.keyCode === ESCAPE_KEYCODE) {
             e.preventDefault();
             searchbar.classList.remove("active");
             setSearchUrlParameters("",
-                (searchbar.value.trim() != "") ? "push" : "replace");
+                (searchbar.value.trim() !== "") ? "push" : "replace");
             if (hasFocus()) {
                 unfocusSearchbar();
             }
             showSearch(false);
             marker.unmark();
-            return;
-        }
-        if (!hasFocus() && e.keyCode == SEARCH_HOTKEY_KEYCODE) {
+        } else if (!hasFocus() && e.keyCode === SEARCH_HOTKEY_KEYCODE) {
             e.preventDefault();
             showSearch(true);
             window.scrollTo(0, 0);
-            searchbar.focus();
-            return;
-        }
-        if (hasFocus() && e.keyCode == DOWN_KEYCODE) {
+            searchbar.select();
+        } else if (hasFocus() && e.keyCode === DOWN_KEYCODE) {
             e.preventDefault();
             unfocusSearchbar();
-            searchresults.children('li').first().classList.add("focus");
-            return;
-        }
-        if (!hasFocus() && (e.keyCode == DOWN_KEYCODE
-                            || e.keyCode == UP_KEYCODE
-                            || e.keyCode == SELECT_KEYCODE)) {
+            searchresults.firstElementChild.classList.add("focus");
+        } else if (!hasFocus() && (e.keyCode === DOWN_KEYCODE
+                                || e.keyCode === UP_KEYCODE
+                                || e.keyCode === SELECT_KEYCODE)) {
             // not `:focus` because browser does annoying scrolling
-            var current_focus = search.searchresults.find("li.focus");
-            if (current_focus.length == 0) return;
+            var focused = searchresults.querySelector("li.focus");
+            if (!focused) return;
             e.preventDefault();
-            if (e.keyCode == DOWN_KEYCODE) {
-                var next = current_focus.next()
-                if (next.length > 0) {
-                    current_focus.classList.remove("focus");
+            if (e.keyCode === DOWN_KEYCODE) {
+                var next = focused.nextElementSibling;
+                if (next) {
+                    focused.classList.remove("focus");
                     next.classList.add("focus");
                 }
-            } else if (e.keyCode == UP_KEYCODE) {
-                current_focus.classList.remove("focus");
-                var prev = current_focus.prev();
-                if (prev.length == 0) {
-                    searchbar.focus();
-                } else {
+            } else if (e.keyCode === UP_KEYCODE) {
+                focused.classList.remove("focus");
+                var prev = focused.previousElementSibling;
+                if (prev) {
                     prev.classList.add("focus");
+                } else {
+                    searchbar.select();
                 }
-            } else {
-                window.location = current_focus.children('a').attr('href');
+            } else { // SELECT_KEYCODE
+                window.location.assign(focused.querySelector('a'));
             }
         }
     }
     
     function showSearch(yes) {
         if (yes) {
-            searchbar_outer.style.display = 'block';
-            content.style.display = 'none';
+            search_wrap.classList.remove('hidden');
             searchicon.setAttribute('aria-expanded', 'true');
         } else {
-            content.style.display = 'block';
-            searchbar_outer.style.display = 'none';
-            searchresults_outer.style.display = 'none';
-            searchbar.value = '';
-            removeChildren(searchresults);
+            search_wrap.classList.add('hidden');
             searchicon.setAttribute('aria-expanded', 'false');
+            var results = searchresults.children;
+            for (var i = 0; i < results.length; i++) {
+                results[i].classList.remove("focus");
+            }
         }
     }
 
     function showResults(yes) {
         if (yes) {
-            searchbar_outer.style.display = 'block';
-            content.style.display = 'none';
-            searchresults_outer.style.display = 'block';
+            searchresults_outer.classList.remove('hidden');
         } else {
-            content.style.display = 'block';
-            searchresults_outer.style.display = 'none';
+            searchresults_outer.classList.add('hidden');
         }
     }
 
     // Eventhandler for search icon
     function searchIconClickHandler() {
-        if (searchbar_outer.style.display === 'block') {
-            showSearch(false);
-        } else {
+        if (search_wrap.classList.contains('hidden')) {
             showSearch(true);
             window.scrollTo(0, 0);
-            searchbar.focus();
+            searchbar.select();
+        } else {
+            showSearch(false);
         }
     }
     
@@ -437,7 +435,7 @@ window.search = window.search || {};
 
         // Do the actual search
         var results = searchindex.search(searchterm, searchoptions);
-        var resultcount = Math.min(results.length, searchoptions.limit_results);
+        var resultcount = Math.min(results.length, resultsoptions.limit_results);
 
         // Display search metrics
         searchresults_header.innerText = formatSearchMetric(resultcount, searchterm);

File diff suppressed because it is too large
+ 1 - 1
book/searchindex.js


+ 20 - 45
book/user-guide/decoherence.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -18,36 +18,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -72,7 +56,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -97,7 +81,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -129,13 +113,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -213,17 +199,7 @@ register.decohere();
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
@@ -240,12 +216,11 @@ register.decohere();
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 20 - 45
book/user-guide/examples.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -18,36 +18,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -72,7 +56,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -97,7 +81,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -129,13 +113,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -212,17 +198,7 @@ fn main() {
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
@@ -239,12 +215,11 @@ fn main() {
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 20 - 45
book/user-guide/gates.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -18,36 +18,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -72,7 +56,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -97,7 +81,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -129,13 +113,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -272,17 +258,7 @@ state.apply_gate(x, 0);
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
@@ -299,12 +275,11 @@ state.apply_gate(x, 0);
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 20 - 45
book/user-guide/operations.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -18,36 +18,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -72,7 +56,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -97,7 +81,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -129,13 +113,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -226,17 +212,7 @@ state.get_probabilities(); // [0.5, 0.5]
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
@@ -253,12 +229,11 @@ state.get_probabilities(); // [0.5, 0.5]
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 20 - 45
book/user-guide/registers.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -18,36 +18,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -72,7 +56,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -97,7 +81,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -129,13 +113,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -218,17 +204,7 @@ let mut register = State::from_bit_string(&quot;|0100&gt;&quot;, 0);
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
@@ -245,12 +221,11 @@ let mut register = State::from_bit_string(&quot;|0100&gt;&quot;, 0);
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 20 - 45
book/user-guide/user-guide.html

@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html lang="en" class="sidebar-visible">
+<html lang="en" class="sidebar-visible no-js">
     <head>
         <!-- Book generated using mdBook -->
         <meta charset="UTF-8">
@@ -18,36 +18,20 @@
         <link rel="shortcut icon" href="favicon.png">
 
         <!-- Font Awesome -->
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <link rel="stylesheet" href="_FontAwesome/css/font-awesome.css">
 
         <link rel="stylesheet" href="highlight.css">
         <link rel="stylesheet" href="tomorrow-night.css">
         <link rel="stylesheet" href="ayu-highlight.css">
 
-        <!-- Custom theme -->
+        <!-- Custom theme stylesheets -->
         
 
         
         <!-- MathJax -->
-        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+        <script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
         
 
-        <!-- Fetch Clipboard.js from CDN but have a local fallback -->
-        <script src="https://cdn.jsdelivr.net/clipboard.js/1.6.1/clipboard.min.js"></script>
-        <script>
-            if (typeof Clipboard == 'undefined') {
-                document.write(unescape("%3Cscript src='clipboard.min.js'%3E%3C/script%3E"));
-            }
-        </script>
-
-        <noscript>
-            <style type="text/css">
-                .javascript-only {
-                    display: none;
-                }
-            </style>
-        </noscript>
-
     </head>
     <body class="light">
         <!-- Work around some values being stored in localStorage wrapped in quotes -->
@@ -72,7 +56,7 @@
             try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } 
             if (theme === null || theme === undefined) { theme = 'light'; }
             document.body.className = theme;
-            document.querySelector('html').className = theme;
+            document.querySelector('html').className = theme + ' js';
         </script>
 
         <!-- Hide / unhide sidebar before it is displayed -->
@@ -97,7 +81,7 @@
                 
                 <div id="menu-bar" class="menu-bar">
                     <div id="menu-bar-sticky-container">
-                        <div class="left-buttons javascript-only">
+                        <div class="left-buttons">
                             <button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
                                 <i class="fa fa-bars"></i>
                             </button>
@@ -129,13 +113,15 @@
                 </div>
 
                 
-                <div id="searchbar-outer" class="searchbar-outer">
-                    <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
-                </div>
-                <div id="searchresults-outer" class="searchresults-outer">
-                    <div class="searchresults-header" id="searchresults-header"></div>
-                    <ul id="searchresults">
-                    </ul>
+                <div id="search-wrapper" class="hidden">
+                    <form id="searchbar-outer" class="searchbar-outer">
+                        <input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
+                    </form>
+                    <div id="searchresults-outer" class="searchresults-outer hidden">
+                        <div id="searchresults-header" class="searchresults-header"></div>
+                        <ul id="searchresults">
+                        </ul>
+                    </div>
                 </div>
                 
 
@@ -191,17 +177,7 @@
 
         </div>
 
-
-        <!-- Local fallback for Font Awesome -->
-        <script>
-            if (getComputedStyle(document.querySelector(".fa")).fontFamily !== "FontAwesome") {
-                var link = document.createElement('link');
-                link.rel = 'stylesheet';
-                link.type = 'text/css';
-                link.href = '_FontAwesome/css/font-awesome.css';
-                document.head.insertBefore(link, document.head.firstChild)
-            }
-        </script>
+        
 
         
 
@@ -218,12 +194,11 @@
         <script src="searcher.js" type="text/javascript" charset="utf-8"></script>
         
 
-        
-
-        <script src="highlight.js"></script>
-        <script src="book.js"></script>
+        <script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
+        <script src="highlight.js" type="text/javascript" charset="utf-8"></script>
+        <script src="book.js" type="text/javascript" charset="utf-8"></script>
 
-        <!-- Custom JS script -->
+        <!-- Custom JS scripts -->
         
 
     </body>

+ 0 - 10
doc/bitflags/example_generated/Flags.t.html

@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <meta http-equiv="refresh" content="0;URL=struct.Flags.html">
-</head>
-<body>
-    <p>Redirecting to <a href="struct.Flags.html">struct.Flags.html</a>...</p>
-    <script>location.replace("struct.Flags.html" + location.search + location.hash);</script>
-</body>
-</html>

+ 0 - 140
doc/bitflags/example_generated/index.html

@@ -1,140 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta name="generator" content="rustdoc">
-    <meta name="description" content="API documentation for the Rust `example_generated` mod in crate `bitflags`.">
-    <meta name="keywords" content="rust, rustlang, rust-lang, example_generated">
-
-    <title>bitflags::example_generated - Rust</title>
-
-    <link rel="stylesheet" type="text/css" href="../../normalize.css">
-    <link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle">
-    
-    <link rel="stylesheet" type="text/css" href="../../dark.css">
-    <link rel="stylesheet" type="text/css" href="../../main.css" id="themeStyle">
-    <script src="../../storage.js"></script>
-    
-
-    
-    
-</head>
-<body class="rustdoc mod">
-    <!--[if lte IE 8]>
-    <div class="warning">
-        This old browser is unsupported and will most likely display funky
-        things.
-    </div>
-    <![endif]-->
-
-    
-
-    <nav class="sidebar">
-        <div class="sidebar-menu">&#9776;</div>
-        
-        <p class='location'>Module example_generated</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class='location'><a href='../index.html'>bitflags</a></p><script>window.sidebarCurrent = {name: 'example_generated', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div>
-    </nav>
-
-    <div class="theme-picker">
-        <button id="theme-picker" aria-label="Pick another theme!">
-            <img src="../../brush.svg" width="18" alt="Pick another theme!">
-        </button>
-        <div id="theme-choices"></div>
-    </div>
-    <script src="../../theme.js"></script>
-    <nav class="sub">
-        <form class="search-form js-only">
-            <div class="search-container">
-                <input class="search-input" name="search"
-                       autocomplete="off"
-                       placeholder="Click or press ‘S’ to search, ‘?’ for more options…"
-                       type="search">
-            </div>
-        </form>
-    </nav>
-
-    <section id='main' class="content">
-<h1 class='fqn'><span class='in-band'>Module <a href='../index.html'>bitflags</a>::<wbr><a class="mod" href=''>example_generated</a></span><span class='out-of-band'><span id='render-detail'>
-                   <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
-                       [<span class='inner'>&#x2212;</span>]
-                   </a>
-               </span><a class='srclink' href='../../src/bitflags/example_generated.rs.html#1-14' title='goto source code'>[src]</a></span></h1>
-<div class='docblock'><p>This module shows an example of code generated by the macro. <strong>IT MUST NOT BE USED OUTSIDE THIS
-CRATE</strong>.</p>
-</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
-<table>
-                       <tr class=' module-item'>
-                           <td><a class="struct" href="struct.Flags.html"
-                                  title='struct bitflags::example_generated::Flags'>Flags</a></td>
-                           <td class='docblock-short'>
-                                <p>This is the same <code>Flags</code> struct defined in the <a href="../index.html#example">crate level example</a>.
-Note that this struct is just for documentation purposes only, it must not be used outside
-this crate.</p>
-
-                           </td>
-                       </tr></table></section>
-    <section id='search' class="content hidden"></section>
-
-    <section class="footer"></section>
-
-    <aside id="help" class="hidden">
-        <div>
-            <h1 class="hidden">Help</h1>
-
-            <div class="shortcuts">
-                <h2>Keyboard Shortcuts</h2>
-
-                <dl>
-                    <dt><kbd>?</kbd></dt>
-                    <dd>Show this help dialog</dd>
-                    <dt><kbd>S</kbd></dt>
-                    <dd>Focus the search field</dd>
-                    <dt><kbd>↑</kbd></dt>
-                    <dd>Move up in search results</dd>
-                    <dt><kbd>↓</kbd></dt>
-                    <dd>Move down in search results</dd>
-                    <dt><kbd>↹</kbd></dt>
-                    <dd>Switch tab</dd>
-                    <dt><kbd>&#9166;</kbd></dt>
-                    <dd>Go to active search result</dd>
-                    <dt><kbd>+</kbd></dt>
-                    <dd>Expand all sections</dd>
-                    <dt><kbd>-</kbd></dt>
-                    <dd>Collapse all sections</dd>
-                </dl>
-            </div>
-
-            <div class="infos">
-                <h2>Search Tricks</h2>
-
-                <p>
-                    Prefix searches with a type followed by a colon (e.g.
-                    <code>fn:</code>) to restrict the search to a given type.
-                </p>
-
-                <p>
-                    Accepted types are: <code>fn</code>, <code>mod</code>,
-                    <code>struct</code>, <code>enum</code>,
-                    <code>trait</code>, <code>type</code>, <code>macro</code>,
-                    and <code>const</code>.
-                </p>
-
-                <p>
-                    Search functions by type signature (e.g.
-                    <code>vec -> usize</code> or <code>* -> vec</code>)
-                </p>
-            </div>
-        </div>
-    </aside>
-
-    
-
-    <script>
-        window.rootPath = "../../";
-        window.currentCrate = "bitflags";
-    </script>
-    <script src="../../main.js"></script>
-    <script defer src="../../search-index.js"></script>
-</body>
-</html>

+ 0 - 1
doc/bitflags/example_generated/sidebar-items.js

@@ -1 +0,0 @@
-initSidebarItems({"struct":[["Flags","This is the same `Flags` struct defined in the crate level example. Note that this struct is just for documentation purposes only, it must not be used outside this crate."]]});

File diff suppressed because it is too large
+ 0 - 272
doc/bitflags/example_generated/struct.Flags.html


+ 2 - 12
doc/bitflags/index.html

@@ -33,7 +33,7 @@
     <nav class="sidebar">
         <div class="sidebar-menu">&#9776;</div>
         
-        <p class='location'>Crate bitflags</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#macros">Macros</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'bitflags', ty: 'mod', relpath: '../'};</script></div>
+        <p class='location'>Crate bitflags</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#macros">Macros</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'bitflags', ty: 'mod', relpath: '../'};</script></div>
     </nav>
 
     <div class="theme-picker">
@@ -242,17 +242,7 @@ on the generated struct), you can simply derive <code>Default</code>:</p>
     <span class="kw">let</span> <span class="ident">implemented_default</span>: <span class="ident">Flags</span> <span class="op">=</span> <span class="ident">Default</span>::<span class="ident">default</span>();
     <span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">implemented_default</span>, (<span class="ident">Flags</span>::<span class="ident">A</span> <span class="op">|</span> <span class="ident">Flags</span>::<span class="ident">C</span>));
 }</pre>
-</div><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
-<table>
-                       <tr class=' module-item'>
-                           <td><a class="mod" href="example_generated/index.html"
-                                  title='mod bitflags::example_generated'>example_generated</a></td>
-                           <td class='docblock-short'>
-                                <p>This module shows an example of code generated by the macro. <strong>IT MUST NOT BE USED OUTSIDE THIS
-CRATE</strong>.</p>
-
-                           </td>
-                       </tr></table><h2 id='macros' class='section-header'><a href="#macros">Macros</a></h2>
+</div><h2 id='macros' class='section-header'><a href="#macros">Macros</a></h2>
 <table>
                        <tr class=' module-item'>
                            <td><a class="macro" href="macro.bitflags.html"

+ 1 - 1
doc/bitflags/sidebar-items.js

@@ -1 +1 @@
-initSidebarItems({"macro":[["bitflags","The macro used to generate the flag structure."]],"mod":[["example_generated","This module shows an example of code generated by the macro. IT MUST NOT BE USED OUTSIDE THIS CRATE."]]});
+initSidebarItems({"macro":[["bitflags","The macro used to generate the flag structure."]]});

File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/clone/trait.Clone.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/cmp/trait.Eq.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/cmp/trait.Ord.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/cmp/trait.PartialEq.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/cmp/trait.PartialOrd.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/fmt/trait.Binary.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/fmt/trait.Debug.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/fmt/trait.LowerHex.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/fmt/trait.Octal.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/fmt/trait.UpperHex.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/hash/trait.Hash.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/iter/traits/trait.Extend.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/iter/traits/trait.FromIterator.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/marker/trait.Copy.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/ops/arith/trait.Sub.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/ops/arith/trait.SubAssign.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/ops/bit/trait.BitAnd.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/ops/bit/trait.BitAndAssign.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/ops/bit/trait.BitOr.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/ops/bit/trait.BitOrAssign.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/ops/bit/trait.BitXor.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/ops/bit/trait.BitXorAssign.js


File diff suppressed because it is too large
+ 0 - 1
doc/implementors/core/ops/bit/trait.Not.js


File diff suppressed because it is too large
+ 61 - 61
doc/ocl/traits/trait.OclPrm.html


File diff suppressed because it is too large
+ 12 - 12
doc/ocl/traits/trait.OclScl.html


+ 47 - 47
doc/ocl/traits/trait.OclVec.html

@@ -68,66 +68,66 @@
           Implementors<a href='#implementors' class='anchor'></a>
         </h2>
         <ul class='item-list' id='implementors-list'>
-    <li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Float8.html" title="struct ocl::prm::Float8">Float8</a></code></li>
+    <li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Double2.html" title="struct ocl::prm::Double2">Double2</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uint4.html" title="struct ocl::prm::Uint4">Uint4</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Short2.html" title="struct ocl::prm::Short2">Short2</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Int3.html" title="struct ocl::prm::Int3">Int3</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Double3.html" title="struct ocl::prm::Double3">Double3</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ulong3.html" title="struct ocl::prm::Ulong3">Ulong3</a></code></li>
 <li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Float2.html" title="struct ocl::prm::Float2">Float2</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uchar8.html" title="struct ocl::prm::Uchar8">Uchar8</a></code></li>
 <li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ulong2.html" title="struct ocl::prm::Ulong2">Ulong2</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ulong16.html" title="struct ocl::prm::Ulong16">Ulong16</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Char4.html" title="struct ocl::prm::Char4">Char4</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Int2.html" title="struct ocl::prm::Int2">Int2</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ulong.html" title="struct ocl::prm::Ulong">Ulong</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Long2.html" title="struct ocl::prm::Long2">Long2</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uchar3.html" title="struct ocl::prm::Uchar3">Uchar3</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Long4.html" title="struct ocl::prm::Long4">Long4</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Double8.html" title="struct ocl::prm::Double8">Double8</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uint3.html" title="struct ocl::prm::Uint3">Uint3</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Long.html" title="struct ocl::prm::Long">Long</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uchar.html" title="struct ocl::prm::Uchar">Uchar</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Double16.html" title="struct ocl::prm::Double16">Double16</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ushort16.html" title="struct ocl::prm::Ushort16">Ushort16</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Short4.html" title="struct ocl::prm::Short4">Short4</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ushort3.html" title="struct ocl::prm::Ushort3">Ushort3</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ushort8.html" title="struct ocl::prm::Ushort8">Ushort8</a></code></li>
 <li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Char8.html" title="struct ocl::prm::Char8">Char8</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Char2.html" title="struct ocl::prm::Char2">Char2</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uchar4.html" title="struct ocl::prm::Uchar4">Uchar4</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uchar8.html" title="struct ocl::prm::Uchar8">Uchar8</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Int3.html" title="struct ocl::prm::Int3">Int3</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Float3.html" title="struct ocl::prm::Float3">Float3</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Short3.html" title="struct ocl::prm::Short3">Short3</a></code></li>
 <li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ulong4.html" title="struct ocl::prm::Ulong4">Ulong4</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Long16.html" title="struct ocl::prm::Long16">Long16</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Short.html" title="struct ocl::prm::Short">Short</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ushort8.html" title="struct ocl::prm::Ushort8">Ushort8</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Short8.html" title="struct ocl::prm::Short8">Short8</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uchar16.html" title="struct ocl::prm::Uchar16">Uchar16</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Int4.html" title="struct ocl::prm::Int4">Int4</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Long2.html" title="struct ocl::prm::Long2">Long2</a></code></li>
 <li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Char16.html" title="struct ocl::prm::Char16">Char16</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Long.html" title="struct ocl::prm::Long">Long</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ulong8.html" title="struct ocl::prm::Ulong8">Ulong8</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Short3.html" title="struct ocl::prm::Short3">Short3</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Short2.html" title="struct ocl::prm::Short2">Short2</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uint8.html" title="struct ocl::prm::Uint8">Uint8</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Int16.html" title="struct ocl::prm::Int16">Int16</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Double2.html" title="struct ocl::prm::Double2">Double2</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Double8.html" title="struct ocl::prm::Double8">Double8</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Double4.html" title="struct ocl::prm::Double4">Double4</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Long3.html" title="struct ocl::prm::Long3">Long3</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ushort16.html" title="struct ocl::prm::Ushort16">Ushort16</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Double3.html" title="struct ocl::prm::Double3">Double3</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Double16.html" title="struct ocl::prm::Double16">Double16</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Int8.html" title="struct ocl::prm::Int8">Int8</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ushort2.html" title="struct ocl::prm::Ushort2">Ushort2</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uchar2.html" title="struct ocl::prm::Uchar2">Uchar2</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ushort.html" title="struct ocl::prm::Ushort">Ushort</a></code></li>
 <li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uint2.html" title="struct ocl::prm::Uint2">Uint2</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ushort4.html" title="struct ocl::prm::Ushort4">Ushort4</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ulong16.html" title="struct ocl::prm::Ulong16">Ulong16</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Short16.html" title="struct ocl::prm::Short16">Short16</a></code></li>
 <li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Int.html" title="struct ocl::prm::Int">Int</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Float4.html" title="struct ocl::prm::Float4">Float4</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ushort2.html" title="struct ocl::prm::Ushort2">Ushort2</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Double4.html" title="struct ocl::prm::Double4">Double4</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Char3.html" title="struct ocl::prm::Char3">Char3</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Short.html" title="struct ocl::prm::Short">Short</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ulong8.html" title="struct ocl::prm::Ulong8">Ulong8</a></code></li>
 <li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Float.html" title="struct ocl::prm::Float">Float</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uint3.html" title="struct ocl::prm::Uint3">Uint3</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uint.html" title="struct ocl::prm::Uint">Uint</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Int2.html" title="struct ocl::prm::Int2">Int2</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uint8.html" title="struct ocl::prm::Uint8">Uint8</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Float8.html" title="struct ocl::prm::Float8">Float8</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Char4.html" title="struct ocl::prm::Char4">Char4</a></code></li>
 <li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uint16.html" title="struct ocl::prm::Uint16">Uint16</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uint4.html" title="struct ocl::prm::Uint4">Uint4</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ulong3.html" title="struct ocl::prm::Ulong3">Ulong3</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uchar.html" title="struct ocl::prm::Uchar">Uchar</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ushort4.html" title="struct ocl::prm::Ushort4">Ushort4</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Long4.html" title="struct ocl::prm::Long4">Long4</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ushort.html" title="struct ocl::prm::Ushort">Ushort</a></code></li>
 <li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Float16.html" title="struct ocl::prm::Float16">Float16</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Char3.html" title="struct ocl::prm::Char3">Char3</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uint.html" title="struct ocl::prm::Uint">Uint</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ushort3.html" title="struct ocl::prm::Ushort3">Ushort3</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Short8.html" title="struct ocl::prm::Short8">Short8</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uchar16.html" title="struct ocl::prm::Uchar16">Uchar16</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Long3.html" title="struct ocl::prm::Long3">Long3</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Long16.html" title="struct ocl::prm::Long16">Long16</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Float3.html" title="struct ocl::prm::Float3">Float3</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uchar3.html" title="struct ocl::prm::Uchar3">Uchar3</a></code></li>
 <li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Double.html" title="struct ocl::prm::Double">Double</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uchar4.html" title="struct ocl::prm::Uchar4">Uchar4</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Int8.html" title="struct ocl::prm::Int8">Int8</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Char2.html" title="struct ocl::prm::Char2">Char2</a></code></li>
 <li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Char.html" title="struct ocl::prm::Char">Char</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Short16.html" title="struct ocl::prm::Short16">Short16</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Float4.html" title="struct ocl::prm::Float4">Float4</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Int4.html" title="struct ocl::prm::Int4">Int4</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Uchar2.html" title="struct ocl::prm::Uchar2">Uchar2</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Int16.html" title="struct ocl::prm::Int16">Int16</a></code></li>
 <li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Long8.html" title="struct ocl::prm::Long8">Long8</a></code></li>
-<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Short4.html" title="struct ocl::prm::Short4">Short4</a></code></li>
+<li><div class='out-of-band'><a class='srclink' href='../../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../../ocl/prm/struct.Ulong.html" title="struct ocl::prm::Ulong">Ulong</a></code></li>
 </ul><script type="text/javascript" async
                          src="../../implementors/ocl_core/traits/ocl_vec/trait.OclVec.js">
                  </script></section>

File diff suppressed because it is too large
+ 2 - 2
doc/search-index.js


+ 0 - 151
doc/src/bitflags/example_generated.rs.html

@@ -1,151 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta name="generator" content="rustdoc">
-    <meta name="description" content="Source to the Rust file `/Users/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-1.0.1/src/example_generated.rs`.">
-    <meta name="keywords" content="rust, rustlang, rust-lang">
-
-    <title>example_generated.rs.html -- source</title>
-
-    <link rel="stylesheet" type="text/css" href="../../normalize.css">
-    <link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle">
-    
-    <link rel="stylesheet" type="text/css" href="../../dark.css">
-    <link rel="stylesheet" type="text/css" href="../../main.css" id="themeStyle">
-    <script src="../../storage.js"></script>
-    
-
-    
-    
-</head>
-<body class="rustdoc source">
-    <!--[if lte IE 8]>
-    <div class="warning">
-        This old browser is unsupported and will most likely display funky
-        things.
-    </div>
-    <![endif]-->
-
-    
-
-    <nav class="sidebar">
-        <div class="sidebar-menu">&#9776;</div>
-        
-        
-    </nav>
-
-    <div class="theme-picker">
-        <button id="theme-picker" aria-label="Pick another theme!">
-            <img src="../../brush.svg" width="18" alt="Pick another theme!">
-        </button>
-        <div id="theme-choices"></div>
-    </div>
-    <script src="../../theme.js"></script>
-    <nav class="sub">
-        <form class="search-form js-only">
-            <div class="search-container">
-                <input class="search-input" name="search"
-                       autocomplete="off"
-                       placeholder="Click or press ‘S’ to search, ‘?’ for more options…"
-                       type="search">
-            </div>
-        </form>
-    </nav>
-
-    <section id='main' class="content"><pre class="line-numbers"><span id="1"> 1</span>
-<span id="2"> 2</span>
-<span id="3"> 3</span>
-<span id="4"> 4</span>
-<span id="5"> 5</span>
-<span id="6"> 6</span>
-<span id="7"> 7</span>
-<span id="8"> 8</span>
-<span id="9"> 9</span>
-<span id="10">10</span>
-<span id="11">11</span>
-<span id="12">12</span>
-<span id="13">13</span>
-<span id="14">14</span>
-</pre><pre class="rust ">
-<span class="doccomment">//! This module shows an example of code generated by the macro. **IT MUST NOT BE USED OUTSIDE THIS</span>
-<span class="doccomment">//! CRATE**.</span>
-
-<span class="macro">bitflags</span><span class="macro">!</span> {
-    <span class="doccomment">/// This is the same `Flags` struct defined in the [crate level example](../index.html#example).</span>
-    <span class="doccomment">/// Note that this struct is just for documentation purposes only, it must not be used outside</span>
-    <span class="doccomment">/// this crate.</span>
-    <span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">Flags</span>: <span class="ident">u32</span> {
-        <span class="kw">const</span> <span class="ident">FLAG_A</span> <span class="op">=</span> <span class="number">0b00000001</span>;
-        <span class="kw">const</span> <span class="ident">FLAG_B</span> <span class="op">=</span> <span class="number">0b00000010</span>;
-        <span class="kw">const</span> <span class="ident">FLAG_C</span> <span class="op">=</span> <span class="number">0b00000100</span>;
-        <span class="kw">const</span> <span class="ident">FLAG_ABC</span> <span class="op">=</span> <span class="self">Self</span>::<span class="ident">FLAG_A</span>.<span class="ident">bits</span> <span class="op">|</span> <span class="self">Self</span>::<span class="ident">FLAG_B</span>.<span class="ident">bits</span> <span class="op">|</span> <span class="self">Self</span>::<span class="ident">FLAG_C</span>.<span class="ident">bits</span>;
-    }
-}
-</pre>
-</section>
-    <section id='search' class="content hidden"></section>
-
-    <section class="footer"></section>
-
-    <aside id="help" class="hidden">
-        <div>
-            <h1 class="hidden">Help</h1>
-
-            <div class="shortcuts">
-                <h2>Keyboard Shortcuts</h2>
-
-                <dl>
-                    <dt><kbd>?</kbd></dt>
-                    <dd>Show this help dialog</dd>
-                    <dt><kbd>S</kbd></dt>
-                    <dd>Focus the search field</dd>
-                    <dt><kbd>↑</kbd></dt>
-                    <dd>Move up in search results</dd>
-                    <dt><kbd>↓</kbd></dt>
-                    <dd>Move down in search results</dd>
-                    <dt><kbd>↹</kbd></dt>
-                    <dd>Switch tab</dd>
-                    <dt><kbd>&#9166;</kbd></dt>
-                    <dd>Go to active search result</dd>
-                    <dt><kbd>+</kbd></dt>
-                    <dd>Expand all sections</dd>
-                    <dt><kbd>-</kbd></dt>
-                    <dd>Collapse all sections</dd>
-                </dl>
-            </div>
-
-            <div class="infos">
-                <h2>Search Tricks</h2>
-
-                <p>
-                    Prefix searches with a type followed by a colon (e.g.
-                    <code>fn:</code>) to restrict the search to a given type.
-                </p>
-
-                <p>
-                    Accepted types are: <code>fn</code>, <code>mod</code>,
-                    <code>struct</code>, <code>enum</code>,
-                    <code>trait</code>, <code>type</code>, <code>macro</code>,
-                    and <code>const</code>.
-                </p>
-
-                <p>
-                    Search functions by type signature (e.g.
-                    <code>vec -> usize</code> or <code>* -> vec</code>)
-                </p>
-            </div>
-        </div>
-    </aside>
-
-    
-
-    <script>
-        window.rootPath = "../../";
-        window.currentCrate = "bitflags";
-    </script>
-    <script src="../../main.js"></script>
-    <script defer src="../../search-index.js"></script>
-</body>
-</html>

File diff suppressed because it is too large
+ 4 - 4
doc/src/bitflags/lib.rs.html