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
14
15
16
17
use crate::value_error::ValueResult;

/// Internal trait used to append multiple values from a slice.
///
/// This trait backs slice arguments to `MultiValues::add<S>()`; downstream code
/// should call the inherent method instead of implementing or naming this trait
/// directly.
#[doc(hidden)]
pub(crate) trait MultiValuesMultiAdderSlice<T> {
    /// Appends all values from `values`.
    ///
    /// # Returns
    ///
    /// Returns `Ok(())` when the values can be appended, or a `ValueError`
    /// describing the type mismatch.
    fn add_values_slice(&mut self, values: &[T]) -> ValueResult<()>;
}