Trait TryApplySelf

Source
pub trait TryApplySelf<V, K: Kind + ?Sized, D: Dedup + ?Sized>: TryApply<V, K, D> {
    // Required method
    fn try_apply_self(&mut self, another: Self) -> Result<()>;
}
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<()>

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§

Source§

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