PropIndexMut

Trait PropIndexMut 

Source
pub trait PropIndexMut<Idx>: IndexMut<Idx> {
    // Provided methods
    fn set_values_from<P, I>(&mut self, iter: I, source: &P)
       where I: IntoIterator,
             I::Item: IntoOwned<Idx>,
             Idx: Clone,
             P: Index<Idx, Output = Self::Output>,
             Self::Output: Clone { ... }
    fn set_values<I>(&mut self, iter: I, value: Self::Output)
       where I: IntoIterator,
             I::Item: IntoOwned<Idx>,
             Self::Output: Clone { ... }
}
Expand description

A property that can be read/write using indexing operations.

Provided Methods§

Source

fn set_values_from<P, I>(&mut self, iter: I, source: &P)
where I: IntoIterator, I::Item: IntoOwned<Idx>, Idx: Clone, P: Index<Idx, Output = Self::Output>, Self::Output: Clone,

Set the value associated with each key produced by iter to the value associated with the key in the property source.

Source

fn set_values<I>(&mut self, iter: I, value: Self::Output)
where I: IntoIterator, I::Item: IntoOwned<Idx>, Self::Output: Clone,

Set the value associated with keys produced by iter to value.

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.

Implementors§

Source§

impl<P: IndexMut<Idx>, Idx> PropIndexMut<Idx> for P