Skip to main content

Dialect

Trait Dialect 

Source
pub trait Dialect: Debug {
    // Required methods
    fn is_identifier_start(&self, ch: char) -> bool;
    fn is_identifier_part(&self, ch: char) -> bool;
    fn name(&self) -> &'static str;
}
Expand description

SQL方言ごとのカスタマイズポイントを提供するトrait。

Required Methods§

Source

fn is_identifier_start(&self, ch: char) -> bool

識別子の先頭として利用可能な文字かを判定する。

Source

fn is_identifier_part(&self, ch: char) -> bool

識別子の残りの文字として利用可能な文字かを判定する。

Source

fn name(&self) -> &'static str

方言名。

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§