pub trait Language:
Send
+ Sync
+ 'static {
// Required methods
fn describe(&self) -> Description;
fn parse(&self, row: &str, source: &[u8]) -> Result<Vec<u8>, String>;
// Provided method
fn print(&self, row: &str, table: &[u8]) -> Result<Vec<u8>, String> { ... }
}Expand description
A language supplied at runtime. Called from whichever thread parses or
prints, hence Send + Sync; kept for the life of the process, since there
is no unregistration.
Required Methods§
fn describe(&self) -> Description
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".