Trait WithPrefix

Source
pub trait WithPrefix {
    // Required method
    fn with_prefix<S: AsRef<str>>(&self, prefix: S) -> Self;
}

Required Methods§

Source

fn with_prefix<S: AsRef<str>>(&self, prefix: S) -> Self

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 WithPrefix for Ident

Source§

fn with_prefix<S: AsRef<str>>(&self, prefix: S) -> Self

Source§

impl WithPrefix for LitStr

Source§

fn with_prefix<S: AsRef<str>>(&self, prefix: S) -> Self

Implementors§