Type Definition supercow::InlineSupercow [] [src]

type InlineSupercow<'a, OWNED, BORROWED = OWNED, SHARED = Box<DefaultFeatures<'static> + 'static>> = Supercow<'a, OWNED, BORROWED, SHARED, InlineStorage<OWNED, SHARED>>;

Supercow with the default STORAGE changed to InlineStorage.

This reduces the number of allocations needed to construct an owned or shared Supercow (down to zero for owned, but note that the default SHARED still has its own Box) at the cost of bloating the Supercow itself, as it now needs to be able to fit a whole OWNED instance.