CodeGenerationTarget

Trait CodeGenerationTarget 

Source
pub trait CodeGenerationTarget {
    // Required methods
    fn name() -> String;
    fn version() -> VersionReq;
    fn extension() -> String;
}

Required Methods§

Source

fn name() -> String

Returns the name of the target (for example: rust).

Source

fn version() -> VersionReq

Returns the version requirements of the language (for example: >=1.0.0).

Source

fn extension() -> String

The default file extension of the code files (for example: rs).

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§