Skip to main content

KeywordTable

Trait KeywordTable 

Source
pub trait KeywordTable {
    // Required method
    fn lookup(&self, word: &str) -> Option<Concept>;
}
Expand description

关键字表:书写形式 → 内部语义。

实现此 trait 即可接入任意语言,无需改动编译逻辑。

Required Methods§

Source

fn lookup(&self, word: &str) -> Option<Concept>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§