Trait delta_inc::PartiallyTransformable
source · [−]pub trait PartiallyTransformable: Sized {
type Delta;
type Error;
fn transform(&mut self, d: &Self::Delta) -> Result<(), Self::Error>;
}
Expand description
A trait describing something which can be transformed in place
by applying a delta. For example, an array [0,1,2]
can be
transformed into another [3,1,2]
by applying a delta which
assigns element 0
to 3
. This trait describes the imperatice
case where the receiver is modified in place. Furthermore, this
trait allows for the possibility that an error is returned.