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:
parent
5efc226290
commit
f0fc9e9700
@ -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>()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user