Trait pdl_compiler::backends::rust_legacy::ToIdent

source ·
pub trait ToIdent {
    // Required method
    fn to_ident(self) -> Ident;
}

Required Methods§

source

fn to_ident(self) -> Ident

Generate a sanitized rust identifier. Rust specific keywords are renamed for validity.

Implementations on Foreign Types§

source§

impl ToIdent for &str

Implementors§