pub trait Explainable: Sized {
// Required methods
fn name() -> &'static str;
fn from_args(args: &ExtensionArgs) -> Result<Self, ExtensionError>;
fn to_args(&self) -> Result<ExtensionArgs, ExtensionError>;
}Expand description
Trait for types that participate in text explanations.
Required Methods§
Sourcefn name() -> &'static str
fn name() -> &'static str
Canonical textual name for this extension. This is what appears in Substrait text plans and how the registry identifies the type.
Sourcefn from_args(args: &ExtensionArgs) -> Result<Self, ExtensionError>
fn from_args(args: &ExtensionArgs) -> Result<Self, ExtensionError>
Parse extension arguments into this type
Sourcefn to_args(&self) -> Result<ExtensionArgs, ExtensionError>
fn to_args(&self) -> Result<ExtensionArgs, ExtensionError>
Convert this type to extension arguments
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.