Trait FormatEncode

Source
pub trait FormatEncode: Format {
Show 20 associated items type EncodeUnit: Encode<Data = (), Format = Self>; type EncodeBool: Encode<Data = bool, Format = Self>; type EncodeI8: Encode<Data = i8, Format = Self>; type EncodeI16: Encode<Data = i16, Format = Self>; type EncodeI32: Encode<Data = i32, Format = Self>; type EncodeI64: Encode<Data = i64, Format = Self>; type EncodeI128: Encode<Data = i128, Format = Self>; type EncodeU8: Encode<Data = u8, Format = Self>; type EncodeU16: Encode<Data = u16, Format = Self>; type EncodeU32: Encode<Data = u32, Format = Self>; type EncodeU64: Encode<Data = u64, Format = Self>; type EncodeU128: Encode<Data = u128, Format = Self>; type EncodeF32: Encode<Data = f32, Format = Self>; type EncodeF64: Encode<Data = f64, Format = Self>; type EncodeByteSlice: Encode<Data = [u8], Format = Self>; type EncodeChar: Encode<Data = char, Format = Self>; type EncodeStr: Encode<Data = str, Format = Self>; type EncodeString: Encode<Data = String, Format = Self>; type EncodeVariantIdx: Encode<Data = VariantIdx, Format = Self>; type EncodeSequenceLen: Encode<Data = SequenceLen, Format = Self>;
}
Expand description

Define the primitive encoders utilized by a formatter

Required Associated Types§

Source

type EncodeUnit: Encode<Data = (), Format = Self>

Source

type EncodeBool: Encode<Data = bool, Format = Self>

Source

type EncodeI8: Encode<Data = i8, Format = Self>

Source

type EncodeI16: Encode<Data = i16, Format = Self>

Source

type EncodeI32: Encode<Data = i32, Format = Self>

Source

type EncodeI64: Encode<Data = i64, Format = Self>

Source

type EncodeI128: Encode<Data = i128, Format = Self>

Source

type EncodeU8: Encode<Data = u8, Format = Self>

Source

type EncodeU16: Encode<Data = u16, Format = Self>

Source

type EncodeU32: Encode<Data = u32, Format = Self>

Source

type EncodeU64: Encode<Data = u64, Format = Self>

Source

type EncodeU128: Encode<Data = u128, Format = Self>

Source

type EncodeF32: Encode<Data = f32, Format = Self>

Source

type EncodeF64: Encode<Data = f64, Format = Self>

Source

type EncodeByteSlice: Encode<Data = [u8], Format = Self>

Source

type EncodeChar: Encode<Data = char, Format = Self>

Source

type EncodeStr: Encode<Data = str, Format = Self>

Source

type EncodeString: Encode<Data = String, Format = Self>

Source

type EncodeVariantIdx: Encode<Data = VariantIdx, Format = Self>

Source

type EncodeSequenceLen: Encode<Data = SequenceLen, Format = Self>

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§