Trait gmeta::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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Types for ()

§

type Input = ()

§

type Output = ()

Implementors§

source§

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

§

type Input = I

§

type Output = O