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

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

Required Methods§

source

fn try_apply_self(&mut self, another: Self) -> Result<(), Error>

Applies the value extracted from another field::Container to this field::Container.

Errors

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

Implementations on Foreign Types§

source§

impl<V, S, D> TryApplySelf<V, Value, D> for HashSet<V, S>where D: Dedup + ?Sized, S: BuildHasher, HashSet<V, S>: TryApply<V, Value, D>,

source§

fn try_apply_self(&mut self, another: HashSet<V, S>) -> Result<(), Error>

source§

impl<K, V, D> TryApplySelf<(K, V), Map, D> for BTreeMap<K, V, Global>where D: Dedup + ?Sized, BTreeMap<K, V, Global>: TryApply<(K, V), Map, D>,

source§

fn try_apply_self( &mut self, another: BTreeMap<K, V, Global> ) -> Result<(), Error>

source§

impl<V, D> TryApplySelf<V, Value, D> for Vec<V, Global>where D: Dedup + ?Sized, Vec<V, Global>: TryApply<V, Value, D>,

source§

fn try_apply_self(&mut self, another: Vec<V, Global>) -> Result<(), Error>

source§

impl<K, V, D, S> TryApplySelf<(K, V), Map, D> for HashMap<K, V, S>where D: Dedup + ?Sized, S: BuildHasher, HashMap<K, V, S>: TryApply<(K, V), Map, D>,

source§

fn try_apply_self(&mut self, another: HashMap<K, V, S>) -> Result<(), Error>

source§

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

source§

fn try_apply_self(&mut self, another: Option<V>) -> Result<(), Error>

source§

impl<V, D> TryApplySelf<V, Value, D> for BTreeSet<V, Global>where D: Dedup + ?Sized, BTreeSet<V, Global>: TryApply<V, Value, D>,

source§

fn try_apply_self(&mut self, another: BTreeSet<V, Global>) -> Result<(), Error>

source§

impl<V, S, D> TryApplySelf<V, Nested, D> for HashSet<V, S>where D: Dedup + ?Sized, S: BuildHasher, HashSet<V, S>: TryApply<V, Nested, D>,

source§

fn try_apply_self(&mut self, another: HashSet<V, S>) -> Result<(), Error>

source§

impl<V, D> TryApplySelf<V, Nested, D> for BTreeSet<V, Global>where D: Dedup + ?Sized, BTreeSet<V, Global>: TryApply<V, Nested, D>,

source§

fn try_apply_self(&mut self, another: BTreeSet<V, Global>) -> Result<(), Error>

source§

impl<V, D> TryApplySelf<V, Nested, D> for Vec<V, Global>where D: Dedup + ?Sized, Vec<V, Global>: TryApply<V, Nested, D>,

source§

fn try_apply_self(&mut self, another: Vec<V, Global>) -> Result<(), Error>

Implementors§

source§

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