InterfaceType

Trait InterfaceType 

pub trait InterfaceType {
    type Input;
    type Output;
    type Interface: Interface<Self::Input, Self::Output> + ?Sized;

    // Required method
    fn interface(&mut self) -> &mut Self::Interface;
}
Expand description

An InterfaceType

Just placeholders

Required Associated Types§

type Input

The input type of the interface

type Output

The output type of the interface

type Interface: Interface<Self::Input, Self::Output> + ?Sized

The type that implements the interface

Required Methods§

fn interface(&mut self) -> &mut Self::Interface

Return the instance of interface for this type

Implementors§