gmeta

Trait Types

Source
pub trait Types {
    type Input: Type;
    type Output: Type;

    // Provided method
    fn register(registry: &mut Registry) -> TypesRepr { ... }
}
Expand description

Trait used for registering types in registry.

Required Associated Types§

Source

type Input: Type

Input type.

Source

type Output: Type

Output type.

Provided Methods§

Source

fn register(registry: &mut Registry) -> TypesRepr

Register input/output types in registry.

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.

Implementations on Foreign Types§

Source§

impl Types for ()

Implementors§

Source§

impl<I: Type, O: Type> Types for InOut<I, O>

Source§

type Input = I

Source§

type Output = O