Type Definition gluon_base::types::AppVec

source ·
pub type AppVec<T> = SmallVec<[T; 2]>;
Expand description

SmallVec used in the Type::App constructor to avoid allocating a Vec for every applied type. If Type is changed in a way that changes its size it is likely a good idea to change the number of elements in the SmallVec so that it fills out the entire Type enum while not increasing the size of Type.