pub trait TryApply<V, K, D>: Container<V>where
    K: Kind + ?Sized,
    D: Dedup + ?Sized,{
    // Required method
    fn try_apply(&mut self, value: V) -> Result<(), Error>;
}
Expand description

Applying a value to a field::Container according to a parsing Kind and Deduplication strategy.

Required Methods§

source

fn try_apply(&mut self, value: V) -> Result<(), Error>

Applies the provided value to this field::Container.

Errors

If this field::Container refuses to apply the value according to the Deduplication strategy.

Implementations on Foreign Types§

source§

impl<V, K> TryApply<V, K, First> for Option<V>where K: Kind + Single + ?Sized,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<V, S> TryApply<V, Nested, Last> for HashSet<V, S>where V: Eq + Hash, S: BuildHasher,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<V> TryApply<V, Value, Unique> for BTreeSet<V, Global>where &'a V: for<'a> IntoSpan, V: Ord,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<V> TryApply<V, Value, Last> for BTreeSet<V, Global>where V: Ord,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<V, S> TryApply<V, Nested, Unique> for HashSet<V, S>where &'a V: for<'a> IntoSpan, V: Eq + Hash, S: BuildHasher,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<K, V, S> TryApply<(K, V), Map, Unique> for HashMap<K, V, S>where S: BuildHasher, &'a K: for<'a> IntoSpan, K: Eq + Hash,

source§

fn try_apply(&mut self, val: (K, V)) -> Result<(), Error>

source§

impl<V, K> TryApply<V, K, Last> for Option<V>where K: Kind + Single + ?Sized,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<V> TryApply<V, Nested, First> for BTreeSet<V, Global>where V: Ord,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<V, S> TryApply<V, Value, Last> for HashSet<V, S>where V: Eq + Hash, S: BuildHasher,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<V> TryApply<V, Nested, First> for Vec<V, Global>where V: PartialEq<V>,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<V> TryApply<V, Nested, Unique> for BTreeSet<V, Global>where &'a V: for<'a> IntoSpan, V: Ord,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<K, V> TryApply<(K, V), Map, Unique> for BTreeMap<K, V, Global>where &'a K: for<'a> IntoSpan, K: Ord,

source§

fn try_apply(&mut self, val: (K, V)) -> Result<(), Error>

source§

impl<V> TryApply<V, Nested, Unique> for Vec<V, Global>where &'a V: for<'a> IntoSpan, V: PartialEq<V>,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<K, V, S> TryApply<(K, V), Map, Last> for HashMap<K, V, S>where K: Eq + Hash, S: BuildHasher,

source§

fn try_apply(&mut self, val: (K, V)) -> Result<(), Error>

source§

impl<V> TryApply<V, Value, First> for BTreeSet<V, Global>where V: Ord,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<V> TryApply<V, Value, Unique> for Vec<V, Global>where &'a V: for<'a> IntoSpan, V: PartialEq<V>,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<V, S> TryApply<V, Nested, First> for HashSet<V, S>where V: Eq + Hash, S: BuildHasher,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<K, V, S> TryApply<(K, V), Map, First> for HashMap<K, V, S>where K: Eq + Hash, S: BuildHasher,

source§

fn try_apply(&mut self, val: (K, V)) -> Result<(), Error>

source§

impl<K, V> TryApply<(K, V), Map, Last> for BTreeMap<K, V, Global>where K: Ord,

source§

fn try_apply(&mut self, val: (K, V)) -> Result<(), Error>

source§

impl<V> TryApply<V, Value, First> for Vec<V, Global>where V: PartialEq<V>,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<V> TryApply<V, Value, Last> for Vec<V, Global>where V: PartialEq<V>,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<V, S> TryApply<V, Value, First> for HashSet<V, S>where V: Eq + Hash, S: BuildHasher,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<V, K> TryApply<V, K, Unique> for Option<V>where &'a V: for<'a> IntoSpan, K: Kind + Single + ?Sized,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<K, V> TryApply<(K, V), Map, First> for BTreeMap<K, V, Global>where K: Ord,

source§

fn try_apply(&mut self, val: (K, V)) -> Result<(), Error>

source§

impl<V> TryApply<V, Nested, Last> for Vec<V, Global>where V: PartialEq<V>,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<V, S> TryApply<V, Value, Unique> for HashSet<V, S>where &'a V: for<'a> IntoSpan, V: Eq + Hash, S: BuildHasher,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

source§

impl<V> TryApply<V, Nested, Last> for BTreeSet<V, Global>where V: Ord,

source§

fn try_apply(&mut self, val: V) -> Result<(), Error>

Implementors§

source§

impl<V, K> TryApply<V, K, First> for Required<V>where K: Kind + Single + ?Sized,

source§

impl<V, K> TryApply<V, K, Last> for Required<V>where K: Kind + Single + ?Sized,

source§

impl<V, K> TryApply<V, K, Unique> for Required<V>where &'a V: for<'a> IntoSpan, K: Kind + Single + ?Sized,