pub trait Transform:
Clone
+ Serialize
+ for<'de> Deserialize<'de> {
// Required methods
fn transform(&self, other: &Self) -> SyncResult<Self>;
fn compose(&self, other: &Self) -> SyncResult<Self>;
fn invert(&self) -> SyncResult<Self>;
}Expand description
Trait for transformable operations
Required Methods§
Sourcefn transform(&self, other: &Self) -> SyncResult<Self>
fn transform(&self, other: &Self) -> SyncResult<Self>
Sourcefn compose(&self, other: &Self) -> SyncResult<Self>
fn compose(&self, other: &Self) -> SyncResult<Self>
Sourcefn invert(&self) -> SyncResult<Self>
fn invert(&self) -> SyncResult<Self>
Inverts this operation
Returns an operation that undoes the effect of this operation.
§Returns
The inverted operation
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.