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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.