Skip to main content

OxDockType

Trait OxDockType 

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

Value-model re-exports: the word, its payload, type descriptors, and the export hook live in crate::value, the single representation for every type. 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".

Implementations on Foreign Types§

Source§

impl OxDockType for NetListenerTag

Implementors§