Trait proc_macro_roids::IdentExt
source · pub trait IdentExt {
// Required methods
fn append<S>(&self, suffix: S) -> Ident
where S: IdentFragment;
fn prepend<S>(&self, prefix: S) -> Ident
where S: IdentFragment;
}
Expand description
Convenience methods on Ident
s.
Required Methods§
sourcefn append<S>(&self, suffix: S) -> Identwhere
S: IdentFragment,
fn append<S>(&self, suffix: S) -> Identwhere S: IdentFragment,
Returns a new Ident
by appending this Ident and the specified suffix.
Parameters
suffix
: Suffix to append.
sourcefn prepend<S>(&self, prefix: S) -> Identwhere
S: IdentFragment,
fn prepend<S>(&self, prefix: S) -> Identwhere S: IdentFragment,
Returns a new Ident
by prepending this Ident with the specified
prefix.
Parameters
prefix
: Prefix to prepend.