@@ -250,6 +250,7 @@ impl<K, V> Handle<NodeRef<marker::Dying, K, V, marker::Leaf>, marker::Edge> {
250
250
/// - The returned KV handle is only valid to access the key and value,
251
251
/// and only valid until the next call to this method or counterpart
252
252
/// `deallocating_next_back`.
253
+ #[ inline]
253
254
pub unsafe fn deallocating_next (
254
255
self ,
255
256
) -> Option < ( Self , Handle < NodeRef < marker:: Dying , K , V , marker:: LeafOrInternal > , marker:: KV > ) >
@@ -280,6 +281,7 @@ impl<K, V> Handle<NodeRef<marker::Dying, K, V, marker::Leaf>, marker::Edge> {
280
281
/// - The returned KV handle is only valid to access the key and value,
281
282
/// and only valid until the next call to this method or counterpart
282
283
/// `deallocating_next`.
284
+ #[ inline]
283
285
unsafe fn deallocating_next_back (
284
286
self ,
285
287
) -> Option < ( Self , Handle < NodeRef < marker:: Dying , K , V , marker:: LeafOrInternal > , marker:: KV > ) >
@@ -316,6 +318,7 @@ impl<'a, K, V> Handle<NodeRef<marker::Immut<'a>, K, V, marker::Leaf>, marker::Ed
316
318
///
317
319
/// # Safety
318
320
/// There must be another KV in the direction travelled.
321
+ #[ inline]
319
322
pub unsafe fn next_unchecked ( & mut self ) -> ( & ' a K , & ' a V ) {
320
323
super :: mem:: replace ( self , |leaf_edge| {
321
324
let kv = leaf_edge. next_kv ( ) ;
@@ -329,6 +332,7 @@ impl<'a, K, V> Handle<NodeRef<marker::Immut<'a>, K, V, marker::Leaf>, marker::Ed
329
332
///
330
333
/// # Safety
331
334
/// There must be another KV in the direction travelled.
335
+ #[ inline]
332
336
pub unsafe fn next_back_unchecked ( & mut self ) -> ( & ' a K , & ' a V ) {
333
337
super :: mem:: replace ( self , |leaf_edge| {
334
338
let kv = leaf_edge. next_back_kv ( ) ;
@@ -344,6 +348,7 @@ impl<'a, K, V> Handle<NodeRef<marker::ValMut<'a>, K, V, marker::Leaf>, marker::E
344
348
///
345
349
/// # Safety
346
350
/// There must be another KV in the direction travelled.
351
+ #[ inline]
347
352
pub unsafe fn next_unchecked ( & mut self ) -> ( & ' a K , & ' a mut V ) {
348
353
let kv = super :: mem:: replace ( self , |leaf_edge| {
349
354
let kv = leaf_edge. next_kv ( ) ;
@@ -359,6 +364,7 @@ impl<'a, K, V> Handle<NodeRef<marker::ValMut<'a>, K, V, marker::Leaf>, marker::E
359
364
///
360
365
/// # Safety
361
366
/// There must be another KV in the direction travelled.
367
+ #[ inline]
362
368
pub unsafe fn next_back_unchecked ( & mut self ) -> ( & ' a K , & ' a mut V ) {
363
369
let kv = super :: mem:: replace ( self , |leaf_edge| {
364
370
let kv = leaf_edge. next_back_kv ( ) ;
@@ -383,6 +389,7 @@ impl<K, V> Handle<NodeRef<marker::Dying, K, V, marker::Leaf>, marker::Edge> {
383
389
///
384
390
/// The only safe way to proceed with the updated handle is to compare it, drop it,
385
391
/// or call this method or counterpart `deallocating_next_back_unchecked` again.
392
+ #[ inline]
386
393
pub unsafe fn deallocating_next_unchecked (
387
394
& mut self ,
388
395
) -> Handle < NodeRef < marker:: Dying , K , V , marker:: LeafOrInternal > , marker:: KV > {
@@ -403,6 +410,7 @@ impl<K, V> Handle<NodeRef<marker::Dying, K, V, marker::Leaf>, marker::Edge> {
403
410
///
404
411
/// The only safe way to proceed with the updated handle is to compare it, drop it,
405
412
/// or call this method or counterpart `deallocating_next_unchecked` again.
413
+ #[ inline]
406
414
pub unsafe fn deallocating_next_back_unchecked (
407
415
& mut self ,
408
416
) -> Handle < NodeRef < marker:: Dying , K , V , marker:: LeafOrInternal > , marker:: KV > {
0 commit comments