Skip to main content

WrapperLikeTransferable

Trait WrapperLikeTransferable 

Source
pub trait WrapperLikeTransferable<C>: IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> + FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>>
where C: Codec,
{ }
Expand description

Trait implemented by types using Wrapper-like implementation of IntoTransferable/FromTransferable.

This is a convenience trait for use with the IntoTransferable derive macro to constrain generic Into/FromTransferable types.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<C, T> WrapperLikeTransferable<C> for T
where T: IntoTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>> + FromTransferable<Context<C>, Error<<C as Encode>::Error, <C as Decode>::Error>>, C: Codec,