Expand description
Subroutines to help implementers of TypeFoldable avoid unnecessary heap allocations.
Structsยง
- VecMappedInPlace ๐Takes ownership of a
Vecthat is being mapped in place, cleaning up if the map fails.
Functionsยง
- fallible_map_box ๐Maps a
Box<T>to aBox<U>, reusing the underlying storage if possible. - fallible_map_vec ๐Maps a
Vec<T>to aVec<U>, reusing the underlying storage if possible. - is_layout_identical ๐
- is_zst ๐