Module chalk_ir::fold::in_place

source ·
Expand description

Subroutines to help implementers of TypeFoldable avoid unnecessary heap allocations.

Structs

Takes ownership of a Vec that is being mapped in place, cleaning up if the map fails.

Functions

Maps a Box<T> to a Box<U>, reusing the underlying storage if possible.
Maps a Vec<T> to a Vec<U>, reusing the underlying storage if possible.
is_zst 🔒