Trait TryApply

Source
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 Deduplication strategy.

Required Methods§

Source

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 Deduplication strategy.

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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<()>

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<()>

Source§

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

Source§

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

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<()>

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<()>

Source§

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

Source§

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

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<()>

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<()>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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 for<'a> &'a V: IntoSpan, K: Kind + Single + ?Sized,