Trait code_gen::ToStaticStr

source ·
pub trait ToStaticStr {
    // Required method
    fn to_static_str(&self) -> &'static str;
}
Expand description

An element that can convert itself to a static string.

Required Methods§

source

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

Converts the element to a static string.

Implementors§