elrond_codec/equivalent/codec_into.rs
1use crate::{CodecFrom, TopDecodeMulti, TopEncodeMulti};
2
3/// Signals that we can safely serialize `Self` in order to obtain a `T` on the other size.
4pub trait CodecInto<T>: TopEncodeMulti
5where
6 T: TopDecodeMulti,
7{
8}
9
10impl<F, I> CodecInto<F> for I
11where
12 I: TopEncodeMulti,
13 F: CodecFrom<I>,
14{
15}