Skip to main content

Explainable

Trait Explainable 

Source
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§

Source

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.

Source

fn from_args(args: &ExtensionArgs) -> Result<Self, ExtensionError>

Parse extension arguments into this type

Source

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".

Implementors§