Trait 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 Idents.

Required Methods§

Source

fn append<S>(&self, suffix: S) -> Ident
where S: IdentFragment,

Returns a new Ident by appending this Ident and the specified suffix.

§Parameters
  • suffix: Suffix to append.
Source

fn prepend<S>(&self, prefix: S) -> Ident
where 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.

Implementations on Foreign Types§

Source§

impl IdentExt for Ident

Source§

fn append<S>(&self, suffix: S) -> Ident
where S: IdentFragment,

Source§

fn prepend<S>(&self, suffix: S) -> Ident
where S: IdentFragment,

Implementors§