Skip to main content

OxDockType

Trait OxDockType 

Source
pub trait OxDockType {
    // Required method
    fn descriptor() -> &'static TypeDescriptor;
}
Expand description

Export hook for a DSL payload type, implemented by #[oxdock_type] on the payload struct itself. The canonical descriptor singleton backs every word of the type; user code never names a generated symbol.

Required Methods§

Source

fn descriptor() -> &'static TypeDescriptor

The canonical descriptor deriving from the struct’s name plus doc comments. The same reference every call: pointer-compare words against it.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§