Trait treediff::Mutable [−][src]
pub trait Mutable {
type Key;
type Item;
fn set(&mut self, keys: &[Self::Key], new: &Self::Item);
fn remove(&mut self, keys: &[Self::Key]);
}
Expand description
A trait to allow changing any Value
.
Associated Types
Required methods
Set the new
Value at the path identified by keys
.
Intermediate container values (like HashMaps, Arrays) must be created until
the last Key in keys
can be modified or inserted with new
.