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 `Value` from supported Rust types.
///
/// This trait backs `Value::new<T>()`; downstream code should call the
/// inherent method instead of implementing or naming this trait directly.
#[doc(hidden)]
pub trait ValueConstructor<T> {
    /// Builds a `Value` that wraps `value`.
    ///
    /// # Returns
    ///
    /// Returns the enum variant corresponding to `T`.
    fn from_type(value: T) -> Self;
}