Trait microkelvin::MutableLeaves
source · [−]pub trait MutableLeaves { }
Expand description
Marker trait to signal that a datastructre can allow mutable access to its leaves.
For example, a Vec
-like structure can allow editing of its leaves without
issue, whereas editing the (Key, Value) pair of a map could make the map
logically invalid.
Note that this is still safe to implement, since it can only cause logical errors, not undefined behaviour,