pub trait ExtensionProtoConvert<T> {
// Required method
fn convert(&self) -> Result<T, ExtensionError>;
}Expand description
Conversion between extension arguments and Substrait protobuf values.
Extension arguments are the structured values exposed to Explainable
implementations, such as ExtensionArgs,
ExtensionValue, and
ExtensionColumn. This trait adapts those values to and from protobuf
types without going through text.
Implementations may convert in either direction; the target type T
determines the direction.
Required Methods§
Sourcefn convert(&self) -> Result<T, ExtensionError>
fn convert(&self) -> Result<T, ExtensionError>
Convert this value into T.