Skip to main content

ExtensionImplementation

Trait ExtensionImplementation 

Source
pub unsafe trait ExtensionImplementation<I>: Extension {
    const IMPLEMENTATION: RawExtensionImplementation;
}
Expand description

Provides an implementation of this extension for a given type I (typically either a host or plugin structure).

§Safety

Implementors MUST ensure the value of the IMPLEMENTATION pointer is correct: it must point to a type that is #[repr(C)] and ABI-compatible with the CLAP extension struct.

Required Associated Constants§

Source

const IMPLEMENTATION: RawExtensionImplementation

The implementation of the extension.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§