Trait pmutil::IdentExt

source ·
pub trait IdentExt {
    // Required method
    fn new_ident_with<F, S>(&self, map: F) -> Ident
       where F: for<'a> FnOnce(&'a str) -> S,
             S: AsRef<str>;
}
Expand description

Extension trait for syn::Ident.

Required Methods§

source

fn new_ident_with<F, S>(&self, map: F) -> Identwhere F: for<'a> FnOnce(&'a str) -> S, S: AsRef<str>,

Creates a new ident with same span by applying map to self.

Implementations on Foreign Types§

source§

impl IdentExt for Ident

source§

fn new_ident_with<F, S>(&self, map: F) -> Identwhere F: for<'a> FnOnce(&'a str) -> S, S: AsRef<str>,

Creates a new ident with same span by applying map to self.

Implementors§