Trait Proto

Source
pub trait Proto {
    type Type;

    // Required methods
    fn from_proto(src: Self::Type) -> Self;
    fn into_proto(self) -> Self::Type;
}
Expand description

Indicates the prototype for a user-defined Exchange-able enum.

Required Associated Types§

Required Methods§

Source

fn from_proto(src: Self::Type) -> Self

Source

fn into_proto(self) -> Self::Type

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.

Implementors§

Source§

impl Proto for Enum0

Source§

impl<_T0> Proto for Enum1<_T0>

Source§

type Type = __1<_T0>

Source§

impl<_T0, _T1> Proto for Enum2<_T0, _T1>

Source§

type Type = __2<_T0, _T1>

Source§

impl<_T0, _T1, _T2> Proto for Enum3<_T0, _T1, _T2>

Source§

type Type = __3<_T0, _T1, _T2>

Source§

impl<_T0, _T1, _T2, _T3> Proto for Enum4<_T0, _T1, _T2, _T3>

Source§

type Type = __4<_T0, _T1, _T2, _T3>

Source§

impl<_T0, _T1, _T2, _T3, _T4> Proto for Enum5<_T0, _T1, _T2, _T3, _T4>

Source§

type Type = __5<_T0, _T1, _T2, _T3, _T4>

Source§

impl<_T0, _T1, _T2, _T3, _T4, _T5> Proto for Enum6<_T0, _T1, _T2, _T3, _T4, _T5>

Source§

type Type = __6<_T0, _T1, _T2, _T3, _T4, _T5>

Source§

impl<_T0, _T1, _T2, _T3, _T4, _T5, _T6> Proto for Enum7<_T0, _T1, _T2, _T3, _T4, _T5, _T6>

Source§

type Type = __7<_T0, _T1, _T2, _T3, _T4, _T5, _T6>

Source§

impl<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7> Proto for Enum8<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7>

Source§

type Type = __8<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7>

Source§

impl<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8> Proto for Enum9<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8>

Source§

type Type = __9<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8>

Source§

impl<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9> Proto for Enum10<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9>

Source§

type Type = __10<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9>

Source§

impl<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10> Proto for Enum11<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10>

Source§

type Type = __11<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10>

Source§

impl<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11> Proto for Enum12<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11>

Source§

type Type = __12<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11>

Source§

impl<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12> Proto for Enum13<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12>

Source§

type Type = __13<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12>

Source§

impl<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12, _T13> Proto for Enum14<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12, _T13>

Source§

type Type = __14<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12, _T13>

Source§

impl<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12, _T13, _T14> Proto for Enum15<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12, _T13, _T14>

Source§

type Type = __15<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12, _T13, _T14>

Source§

impl<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12, _T13, _T14, _T15> Proto for Enum16<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12, _T13, _T14, _T15>

Source§

type Type = __16<_T0, _T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12, _T13, _T14, _T15>