pub trait MultiValuesAdder<T>: MultiValuesAdderSealed<T> {
// Required method
fn add_value(&mut self, value: T) -> ValueResult<()>;
}Expand description
Internal trait used to add a single value to MultiValues.
This trait backs MultiValues::add<S>(); downstream code should call the
inherent method instead of implementing or naming this trait directly.
Required Methods§
Sourcefn add_value(&mut self, value: T) -> ValueResult<()>
fn add_value(&mut self, value: T) -> ValueResult<()>
Appends value to the stored values.
§Returns
Returns Ok(()) when the value can be appended, or a ValueError
describing the type mismatch.