File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -298,6 +298,7 @@ where
298
298
/// # test()
299
299
/// # }
300
300
/// ```
301
+ #[ cfg_attr( feature = "inline-more" , inline) ]
301
302
pub fn find_entry (
302
303
& mut self ,
303
304
hash : u64 ,
@@ -358,6 +359,7 @@ where
358
359
/// # test()
359
360
/// # }
360
361
/// ```
362
+ #[ cfg_attr( feature = "inline-more" , inline) ]
361
363
pub fn entry (
362
364
& mut self ,
363
365
hash : u64 ,
@@ -1514,6 +1516,7 @@ where
1514
1516
/// # test()
1515
1517
/// # }
1516
1518
/// ```
1519
+ #[ cfg_attr( feature = "inline-more" , inline) ]
1517
1520
pub fn remove ( self ) -> ( T , VacantEntry < ' a , T , A > ) {
1518
1521
let ( val, slot) = unsafe { self . table . raw . remove ( self . bucket ) } ;
1519
1522
(
@@ -1553,6 +1556,7 @@ where
1553
1556
/// # test()
1554
1557
/// # }
1555
1558
/// ```
1559
+ #[ inline]
1556
1560
pub fn get ( & self ) -> & T {
1557
1561
unsafe { self . bucket . as_ref ( ) }
1558
1562
}
@@ -1606,6 +1610,7 @@ where
1606
1610
/// # test()
1607
1611
/// # }
1608
1612
/// ```
1613
+ #[ inline]
1609
1614
pub fn get_mut ( & mut self ) -> & mut T {
1610
1615
unsafe { self . bucket . as_mut ( ) }
1611
1616
}
@@ -1759,6 +1764,7 @@ where
1759
1764
/// # test()
1760
1765
/// # }
1761
1766
/// ```
1767
+ #[ inline]
1762
1768
pub fn insert ( self , value : T ) -> OccupiedEntry < ' a , T , A > {
1763
1769
let bucket = unsafe {
1764
1770
self . table
You can’t perform that action at this time.
0 commit comments