pub trait AddPrefix {
    fn prefix(&mut self, prefix_conf: &PrefixConfiguration);

    fn add_prefix(&mut self, prefix: &str) { ... }
    fn add_prefix_with_sep(&mut self, prefix: &str, sep: &str) { ... }
}
Expand description

Trait for object that can be prefixed

Required Methods

Add the prefix to all elements of the object that needs to be prefixed. PrefixConfiguration contains all the needed metadata to create the complete prefix.

Provided Methods

👎 Deprecated since 0.24.0:

please use AddPrefix::prefix() instead

Add the prefix to all elements of the object that needs to be prefixed.

👎 Deprecated since 0.24.0:

please use AddPrefix::prefix() instead

Add the prefix to all elements of the object that needs to be prefixed. A separator will be placed between the prefix and the identifier.

Implementations on Foreign Types

Implementors