Skip to main content
Module retain
alloc
1.102.0-nightly
(6181cc4f0 2026-11-28)
Module retain
Module Items
Re-exports
Functions
In alloc::
collections
alloc
::
collections
Module
retain
Copy item path
Source
Re-exports
ยง
use core::
cmp
;
๐
use core::
hint
;
๐
use core::
mem
;
๐
use core::
ptr
;
๐
Functions
ยง
retain_
raw
๐
โ
Retains elements in two contiguous regions according to
f
.
slot
๐
โ
Returns a pointer to the slot at the given logical index.