[][src]Trait pmutil::IdentExt

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

Extension trait for syn::Ident.

Required methods

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

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

Loading content...

Implementors

impl IdentExt for Ident[src]

fn new_ident_with<F, S>(&self, map: F) -> Ident where
    F: for<'a> FnOnce(&'a str) -> S,
    S: AsRef<str>, 
[src]

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

Loading content...