pub trait CatalogInputFunctions {
// Required method
fn read_unknown_input(
&self,
text: &str,
target: &ColumnType,
) -> Result<Value>;
// Provided method
fn read_unknown_input_with_control(
&self,
text: &str,
target: &ColumnType,
control: &ProductionControl<'_>,
) -> Result<Produced<Value>> { ... }
}Expand description
Catalog input needed after analysis selects a type for an unknown literal. Domain array input includes each element’s constraints, so the caller must retain this value rather than read the text again at execution.
Required Methods§
fn read_unknown_input(&self, text: &str, target: &ColumnType) -> Result<Value>
Provided Methods§
Sourcefn read_unknown_input_with_control(
&self,
text: &str,
target: &ColumnType,
control: &ProductionControl<'_>,
) -> Result<Produced<Value>>
fn read_unknown_input_with_control( &self, text: &str, target: &ColumnType, control: &ProductionControl<'_>, ) -> Result<Produced<Value>>
External callbacks retain their original production boundary; a controlled caller receives a distinct admitted value. Native catalogs override this method at their input constructors.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".