pub trait Encode<W>where
W: IoWrite,{
// Required method
fn encode(&self, writer: &mut W) -> Result<usize, Error<W::Error>>;
}
Expand description
A type which can be encoded to MessagePack.
Required Methods§
Implementations on Foreign Types§
Source§impl<W, V0, V1, V2> Encode<W> for (V0, V1, V2)
impl<W, V0, V1, V2> Encode<W> for (V0, V1, V2)
Source§impl<W, V0, V1, V2, V3> Encode<W> for (V0, V1, V2, V3)
impl<W, V0, V1, V2, V3> Encode<W> for (V0, V1, V2, V3)
Source§impl<W, V0, V1, V2, V3, V4> Encode<W> for (V0, V1, V2, V3, V4)
impl<W, V0, V1, V2, V3, V4> Encode<W> for (V0, V1, V2, V3, V4)
Source§impl<W, V0, V1, V2, V3, V4, V5> Encode<W> for (V0, V1, V2, V3, V4, V5)
impl<W, V0, V1, V2, V3, V4, V5> Encode<W> for (V0, V1, V2, V3, V4, V5)
Source§impl<W, V0, V1, V2, V3, V4, V5, V6> Encode<W> for (V0, V1, V2, V3, V4, V5, V6)
impl<W, V0, V1, V2, V3, V4, V5, V6> Encode<W> for (V0, V1, V2, V3, V4, V5, V6)
Source§impl<W, V0, V1, V2, V3, V4, V5, V6, V7> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7)
impl<W, V0, V1, V2, V3, V4, V5, V6, V7> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7)
Source§impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8)
impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8)
Source§impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8, V9)
impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8, V9)
Source§impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10)
impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10)
Source§impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11)
impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11)
Source§impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12)
impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12)
Source§impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13)
impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13)
Source§impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14)
impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14)
Source§impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14, V15> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14, V15)
impl<W, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14, V15> Encode<W> for (V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14, V15)
Implementors§
impl<'a, W: IoWrite> Encode<W> for ExtensionRef<'a>
impl<W> Encode<W> for Formatwhere
W: IoWrite,
impl<W> Encode<W> for EncodeMinimizeFloatwhere
W: IoWrite,
impl<W, I, J, KV> Encode<W> for MapDataEncoder<I, J, KV>
impl<W, I, J, KV> Encode<W> for MapEncoder<W, I, J, KV>
impl<W, KV> Encode<W> for MapSliceEncoder<'_, KV>
impl<W, N> Encode<W> for EncodeMinimizeInt<N>where
W: IoWrite,
N: ToPrimitive,
impl<W: IoWrite> Encode<W> for ExtensionOwned
Available on crate feature
alloc
only.