PluginInitializable
public protocol PluginInitializable
The conforming type can be initialized with a Plugin
. Allows for construction of concrete, type-erasing wrappers
to store heterogenous collections of Plugins in a category.
Throws
PluginError.mismatchedPlugin if the instance is associated with the wrong category-
Declaration
Swift
init<P>(instance: P) where P : Plugin