Skip to main content

InterfaceDefinition

Trait InterfaceDefinition 

Source
pub trait InterfaceDefinition {
    // Required method
    fn descriptor() -> InterfaceDescriptor;
}
Expand description

Static metadata implemented by every companion generated by interface.

Required Methods§

Source

fn descriptor() -> InterfaceDescriptor

Builds the interface descriptor solely from its trait declaration.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§