File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 1742
1742
}
1743
1743
}
1744
1744
1745
+ function autoCollapseAllImpls ( ) {
1746
+ // Automatically minimize all non-inherent impls
1747
+ onEach ( document . getElementsByClassName ( 'impl' ) , function ( n ) {
1748
+ if ( n . id !== 'impl' ) {
1749
+ // non-inherent impl
1750
+ onEach ( n . childNodes , function ( m ) {
1751
+ if ( hasClass ( m , "collapse-toggle" ) ) {
1752
+ collapseDocs ( m , "hide" ) ;
1753
+ }
1754
+ } ) ;
1755
+ }
1756
+ } ) ;
1757
+ }
1758
+
1745
1759
var x = document . getElementById ( 'toggle-all-docs' ) ;
1746
1760
if ( x ) {
1747
1761
x . onclick = toggleAllDocs ;
1819
1833
}
1820
1834
} )
1821
1835
1836
+ autoCollapseAllImpls ( ) ;
1837
+
1822
1838
function createToggleWrapper ( ) {
1823
1839
var span = document . createElement ( 'span' ) ;
1824
1840
span . className = 'toggle-label' ;
You can’t perform that action at this time.
0 commit comments