qubit-value 0.6.0

Type-safe value container framework with unified abstractions for single values, multi-values, and named values with complete serde support
Documentation
use super::multi_values::MultiValues;
use crate::value_error::ValueResult;

/// Internal dispatch trait for `MultiValues::set<S>()`.
///
/// Implementations route `Vec<T>`, `&[T]`, and `T` to the matching set path.
#[doc(hidden)]
pub trait MultiValuesSetArg<'a> {
    /// Element type being set.
    type Item: 'a + Clone;

    /// Applies this argument to `target`.
    ///
    /// # Returns
    ///
    /// Returns `Ok(())` when the target is updated, or a `ValueError` from the
    /// selected set path.
    fn apply(self, target: &mut MultiValues) -> ValueResult<()>;
}