Mention uniqueness check in plugin name method docs (#7554)

# Objective

One of the most important usages of plugin names is currently not mentioned in its documentation: the uniqueness check

## Solution

- Mention that the plugin name is used to check for uniqueness
This commit is contained in:
Niklas Eicker 2023-02-07 22:40:22 +00:00
parent 5efc226290
commit f0fc9e9700

View File

@ -24,7 +24,8 @@ pub trait Plugin: Downcast + Any + Send + Sync {
// do nothing
}
/// Configures a name for the [`Plugin`] which is primarily used for debugging.
/// Configures a name for the [`Plugin`] which is primarily used for checking plugin
/// uniqueness and debugging.
fn name(&self) -> &str {
std::any::type_name::<Self>()
}