Static thin_vec::EMPTY_HEADER
source · pub(crate) static EMPTY_HEADER: Header
Expand description
Singleton that all empty collections share. Note: can’t store non-zero ZSTs, we allocate in that case. We could optimize everything to not do that (basically, make ptr == len and branch on size == 0 in every method), but it’s a bunch of work for something that doesn’t matter much.