pub trait TryApply<V, K: Kind + ?Sized, D: Dedup + ?Sized>: Container<V> {
// Required method
fn try_apply(&mut self, value: V) -> Result<()>;
}
Expand description
Applying a value to a field::Container
according to a parsing
Kind
and Dedup
lication strategy.
Required Methods§
Sourcefn try_apply(&mut self, value: V) -> Result<()>
fn try_apply(&mut self, value: V) -> Result<()>
Applies the provided value
to this field::Container
.
§Errors
If this field::Container
refuses to apply the value
according
to the Dedup
lication strategy.