Skip to main content

Lang

Trait Lang 

Source
pub trait Lang {
    // Required methods
    fn get_prelude(&self) -> String;
    fn fmt_version_getter(&self, git_version: &GitVersion) -> String;
}
Expand description

Structs implementing Lang are able to perform syntactically correct conversion from a GitVersion to the languages source code

Required Methods§

Source

fn get_prelude(&self) -> String

Struct and or type definitions for a language

Source

fn fmt_version_getter(&self, git_version: &GitVersion) -> String

Formatting of the GitVersion into a getter (a function or variable) with the languages syntax

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§