Trait 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§