Trait fera_graph::props::PropIndexMut
source · pub trait PropIndexMut<Idx>: IndexMut<Idx> {
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
sourcefn 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_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
.
sourcefn set_values<I>(&mut self, iter: I, value: Self::Output)where
I: IntoIterator,
I::Item: IntoOwned<Idx>,
Self::Output: Clone,
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
.