[−][src]Macro lv2_core::match_extensions
Generate the body of a plugin's extension_data
function.
This macro takes a URI as it's first argument, followed by a list of extension descriptors. This will create a match expression that matches the given URI with the URIs of the extension descriptors. If one of the extension URIs matches, the statement returns the interface of the descriptor.
The generated statement returns a value of Option<&'static dyn std::any::Any>
.
See the documentation of the extension
module for more information on how to use this macro.