Expand description
Tests for Vec<enum> where the element is a unit (data-less) enum. Such an
enum is a scalar discriminant, so the collection is stored as a document
array and offers the scalar-collection operators (contains, len, …).
Gated on document_collections, like the struct-embed collections in
type_document.
Functions§
- vec_
enum_ contains_ and_ len - The scalar-collection operators unlocked by the emitted
Scalarimpl:contains(variant)matches on discriminant membership andlen()filters on cardinality. - vec_
enum_ create_ get - A
Vec<unit-enum>round-trips through INSERT and a fresh fetch: the discriminants are stored as a document array and reloaded back to variants.