Trait Language

Source
pub trait Language:
    Hash
    + Eq
    + Copy
    + Clone
    + Debug
    + Display
    + Send
    + Sync
    + Serialize
    + DeserializeOwned
    + 'static {
    const FILE_EXTENSIONS: &'static [&'static str];
}
Expand description

Keeps a set of languages recognized by the compiler.

Required Associated Constants§

Source

const FILE_EXTENSIONS: &'static [&'static str]

Extensions of source files recognized by the language set.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Language for MultiCompilerLanguage

Source§

const FILE_EXTENSIONS: &'static [&'static str]

Source§

impl Language for SolcLanguage

Source§

const FILE_EXTENSIONS: &'static [&'static str] = SOLC_EXTENSIONS

Source§

impl Language for VyperLanguage

Source§

const FILE_EXTENSIONS: &'static [&'static str] = VYPER_EXTENSIONS