[−][src]Trait dipstick::Prefixed
Name operations support.
Required methods
fn get_prefixes(&self) -> &NameParts
Returns namespace of component.
fn add_prefix<S: Into<String>>(&self, name: S) -> Self
Use named() or add_name()
Append a name to the existing names. Return a clone of the component with the updated names.
fn add_name<S: Into<String>>(&self, name: S) -> Self
Append a name to the existing names. Return a clone of the component with the updated names.
fn named<S: Into<String>>(&self, name: S) -> Self
Replace any existing names with a single name.
Return a clone of the component with the new name.
If multiple names are required, add_name
may also be used.
Provided methods
fn prefix_append<S: Into<MetricName>>(&self, name: S) -> MetricName
Append any name parts to the name's namespace.
fn prefix_prepend<S: Into<MetricName>>(&self, name: S) -> MetricName
Prepend any name parts to the name's namespace.
Implementors
impl<T: WithAttributes> Prefixed for T
[src]
fn get_prefixes(&self) -> &NameParts
[src]
Returns namespace of component.
fn add_prefix<S: Into<String>>(&self, name: S) -> Self
[src]
Use named() or add_name()
Append a name to the existing names. Return a clone of the component with the updated names.
fn add_name<S: Into<String>>(&self, name: S) -> Self
[src]
Append a name to the existing names. Return a clone of the component with the updated names.
fn named<S: Into<String>>(&self, name: S) -> Self
[src]
Replace any existing names with a single name.
Return a clone of the component with the new name.
If multiple names are required, add_name
may also be used.