pub trait Transform<T> {
// Required methods
fn name(&self) -> &'static str;
fn apply(&self, value: T) -> T;
}Expand description
A structure-preserving mutation of a value.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl Transform<IacResource> for Vec<ResourceOp>
A sequence of ops runs in order and is itself a Transform.
impl Transform<IacResource> for Vec<ResourceOp>
A sequence of ops runs in order and is itself a Transform.
fn name(&self) -> &'static str
fn apply(&self, r: IacResource) -> IacResource
Implementors§
impl Transform<IacResource> for ResourceOp
A single op is also a Transform.