pub trait WitInterface {
type Dependencies: RegisterWitTypes;
// Required methods
fn wit_package() -> &'static str;
fn wit_name() -> &'static str;
fn wit_functions() -> Vec<String>;
}
Expand description
Generates WIT snippets for an interface.
Required Associated Types§
Sourcetype Dependencies: RegisterWitTypes
type Dependencies: RegisterWitTypes
The WitType
s that this interface uses.
Required Methods§
Sourcefn wit_package() -> &'static str
fn wit_package() -> &'static str
The name of the package the interface belongs to.
Sourcefn wit_functions() -> Vec<String>
fn wit_functions() -> Vec<String>
The WIT definitions of each function in this interface.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.