pub trait OperationContract: Send + Sync {
// Required methods
fn descriptor(&self) -> &OperationDescriptor;
fn validate_signature(
&self,
inputs: &[TensorContract],
outputs: &[TensorContract],
) -> Result<(), VNextError>;
}Expand description
Object-safe semantic operation contract used while building a plan.
Required Methods§
fn descriptor(&self) -> &OperationDescriptor
fn validate_signature( &self, inputs: &[TensorContract], outputs: &[TensorContract], ) -> Result<(), VNextError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".