Trait transit_model::AddPrefix
source · 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§
sourcefn prefix(&mut self, prefix_conf: &PrefixConfiguration)
fn prefix(&mut self, prefix_conf: &PrefixConfiguration)
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§
sourcefn add_prefix(&mut self, prefix: &str)
fn add_prefix(&mut self, prefix: &str)
👎Deprecated since 0.24.0: please use
AddPrefix::prefix()
insteadAdd the prefix to all elements of the object that needs to be prefixed.
sourcefn add_prefix_with_sep(&mut self, prefix: &str, sep: &str)
fn add_prefix_with_sep(&mut self, prefix: &str, sep: &str)
👎Deprecated since 0.24.0: please use
AddPrefix::prefix()
insteadAdd the prefix to all elements of the object that needs to be prefixed. A separator will be placed between the prefix and the identifier.