qubit-value 0.4.5

Type-safe value container framework with unified abstractions for single values, multi-values, and named values with complete serde support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Internal trait used to create `MultiValues` from `Vec<T>`.
///
/// This trait backs `MultiValues::new<T>()`; downstream code should call the
/// inherent method instead of implementing or naming this trait directly.
#[doc(hidden)]
pub trait MultiValuesConstructor<T> {
    /// Builds a `MultiValues` instance from `values`.
    ///
    /// # Returns
    ///
    /// Returns the enum variant corresponding to `T`.
    fn from_vec(values: Vec<T>) -> Self;
}