//! [`Tagged`] key–value cell (`Stratum 3.2`).
usesuper::tag::Tag;/// Associates runtime value `V` with key type `K` inside a [`Cons`](super::hlist::Cons) list.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]pubstructTagged<K:?Sized, V> {pub(crate)_tag:Tag<K>,
/// Runtime value stored under the phantom key `K`.
pubvalue: V,
}impl<K:?Sized, V> Tagged<K, V>{/// Pair `value` with the key type `K` via [`Tag::new`].
#[inline]pubconstfnnew(value: V)->Self{Self{
_tag:Tag::new(),
value,}}}/// SPEC `tagged[K, V]: V → Tagged[K, V]` — alias of [`Tagged::new`].
#[inline]pubconstfntagged<K:?Sized, V>(value: V)->Tagged<K, V>{Tagged::new(value)}