Decode

Trait Decode 

Source
pub trait Decode<R: Read>: Sized {
    // Required method
    fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>;
}
Expand description

A binary data structure specification which can be decoded from its binary representation.

Implementations that need to seek should implement for R: Read + Seek, while those that need to borrow should implement for R: BorrowRead<'data>.

If you need both, use R: BorrowRead<'data> + Seek

You should keep your implementation as general as possible and avoid implementing for a R = ConcreteType if possible

§Note about lifetimes

An implementation of this trait where your type uses the same lifetime as the decoder (the 'data lifetime) will greatly limit the possible usages of the implementation.

Instead, prefer giving your type a different lifetime and make the 'data lifetime depend on it.

§Correct:

impl<'data: 'a + 'b + ..., 'a, 'b, ...> Decode<BorrowRead<'data>> for Thing<'a, 'b, ...> { ... }

§Misleading:

impl<'data> Decode<BorrowRead<'data>> for Thing<'data, 'data, ...> { ... }

Required Methods§

Source

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Decodes Self from its binary format.

Calling decode multiple times without changing the encoder settings or the underlying binary data in-between calls should produce the same output.

If the result is Ok, implementations should guarantee that the state of the encoder is preserved. If the result is Err, no guarantees are made about the state of the encoder, and users should reset it before reuse.

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.

Implementations on Foreign Types§

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a str

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a CStr

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a OsStr

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a Path

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a [f32]

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a [f64]

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a [i8]

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a [i16]

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a [i32]

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a [i64]

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a [i128]

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a [isize]

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a [u8]

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a [u16]

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a [u32]

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a [u64]

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a [u128]

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>> Decode<R> for &'a [usize]

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<'data: 'a, 'a, R: BorrowRead<'data>, T: ?Sized + ToOwned> Decode<R> for Cow<'a, T>
where &'a T: Decode<R>,

Available on crate feature alloc only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for IpAddr

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for SocketAddr

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for bool

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for char

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for f32

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for f64

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for i8

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for i16

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for i32

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for i64

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for i128

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for isize

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for !

Available on crate feature unstable only.
Source§

fn decode(_decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for u8

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for u16

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for u32

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for u64

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for u128

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for ()

Source§

fn decode(_decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for usize

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>
where Self: Sized,

Source§

impl<R: Read> Decode<R> for Box<str>

Available on crate feature alloc only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for Box<CStr>

Available on crate feature alloc only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for Box<OsStr>

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for Box<Path>

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for CString

Available on crate feature alloc only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for String

Available on crate feature alloc only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for Ipv4Addr

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for Ipv6Addr

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for SocketAddrV4

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for SocketAddrV6

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for RangeFull

Source§

fn decode(_decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for Duration

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for OsString

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for PathBuf

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for SystemTime

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for NonZeroI8

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for NonZeroI16

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for NonZeroI32

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for NonZeroI64

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for NonZeroI128

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for NonZeroIsize

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for NonZeroU8

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for NonZeroU16

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for NonZeroU32

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for NonZeroU64

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for NonZeroU128

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read> Decode<R> for NonZeroUsize

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, A: Decode<R>, B: Decode<R>> Decode<R> for (A, B)

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, A: Decode<R>, B: Decode<R>, C: Decode<R>> Decode<R> for (A, B, C)

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, A: Decode<R>, B: Decode<R>, C: Decode<R>, D: Decode<R>> Decode<R> for (A, B, C, D)

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, A: Decode<R>, B: Decode<R>, C: Decode<R>, D: Decode<R>, E: Decode<R>> Decode<R> for (A, B, C, D, E)

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, A: Decode<R>, B: Decode<R>, C: Decode<R>, D: Decode<R>, E: Decode<R>, F: Decode<R>> Decode<R> for (A, B, C, D, E, F)

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, A: Decode<R>, B: Decode<R>, C: Decode<R>, D: Decode<R>, E: Decode<R>, F: Decode<R>, G: Decode<R>> Decode<R> for (A, B, C, D, E, F, G)

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, A: Decode<R>, B: Decode<R>, C: Decode<R>, D: Decode<R>, E: Decode<R>, F: Decode<R>, G: Decode<R>, H: Decode<R>> Decode<R> for (A, B, C, D, E, F, G, H)

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, A: Decode<R>, B: Decode<R>, C: Decode<R>, D: Decode<R>, E: Decode<R>, F: Decode<R>, G: Decode<R>, H: Decode<R>, I: Decode<R>> Decode<R> for (A, B, C, D, E, F, G, H, I)

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, A: Decode<R>, B: Decode<R>, C: Decode<R>, D: Decode<R>, E: Decode<R>, F: Decode<R>, G: Decode<R>, H: Decode<R>, I: Decode<R>, J: Decode<R>> Decode<R> for (A, B, C, D, E, F, G, H, I, J)

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, A: Decode<R>, B: Decode<R>, C: Decode<R>, D: Decode<R>, E: Decode<R>, F: Decode<R>, G: Decode<R>, H: Decode<R>, I: Decode<R>, J: Decode<R>, K: Decode<R>> Decode<R> for (A, B, C, D, E, F, G, H, I, J, K)

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, A: Decode<R>, B: Decode<R>, C: Decode<R>, D: Decode<R>, E: Decode<R>, F: Decode<R>, G: Decode<R>, H: Decode<R>, I: Decode<R>, J: Decode<R>, K: Decode<R>, L: Decode<R>> Decode<R> for (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, A: Decode<R>, B: Decode<R>, C: Decode<R>, D: Decode<R>, E: Decode<R>, F: Decode<R>, G: Decode<R>, H: Decode<R>, I: Decode<R>, J: Decode<R>, K: Decode<R>, L: Decode<R>, M: Decode<R>> Decode<R> for (A, B, C, D, E, F, G, H, I, J, K, L, M)

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, A: Decode<R>, B: Decode<R>, C: Decode<R>, D: Decode<R>, E: Decode<R>, F: Decode<R>, G: Decode<R>, H: Decode<R>, I: Decode<R>, J: Decode<R>, K: Decode<R>, L: Decode<R>, M: Decode<R>, N: Decode<R>> Decode<R> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, A: Decode<R>, B: Decode<R>, C: Decode<R>, D: Decode<R>, E: Decode<R>, F: Decode<R>, G: Decode<R>, H: Decode<R>, I: Decode<R>, J: Decode<R>, K: Decode<R>, L: Decode<R>, M: Decode<R>, N: Decode<R>, O: Decode<R>> Decode<R> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, A: Decode<R>, B: Decode<R>, C: Decode<R>, D: Decode<R>, E: Decode<R>, F: Decode<R>, G: Decode<R>, H: Decode<R>, I: Decode<R>, J: Decode<R>, K: Decode<R>, L: Decode<R>, M: Decode<R>, N: Decode<R>, O: Decode<R>, P: Decode<R>> Decode<R> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, K: Ord + Decode<R>> Decode<R> for BTreeSet<K>

Available on crate feature alloc only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, K: Ord + Decode<R>, V: Decode<R>> Decode<R> for BTreeMap<K, V>

Available on crate feature alloc only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, K: Hash + Eq + Decode<R>> Decode<R> for HashSet<K>

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, K: Hash + Eq + Decode<R>, V: Decode<R>> Decode<R> for HashMap<K, V>

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Ord + Decode<R>> Decode<R> for BinaryHeap<T>

Available on crate feature alloc only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Copy + Decode<R>> Decode<R> for Cell<T>

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for Bound<T>

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for Option<T>

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for Box<[T]>

Available on crate feature alloc only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for Box<T>

Available on crate feature alloc only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for LinkedList<T>

Available on crate feature alloc only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for VecDeque<T>

Available on crate feature alloc only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for Rc<T>

Available on crate feature alloc only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for Arc<T>

Available on crate features alloc and sync only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for Vec<T>

Available on crate feature alloc only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for RefCell<T>

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for Range<T>

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for RangeFrom<T>

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for RangeInclusive<T>

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for RangeTo<T>

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for Mutex<T>

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>> Decode<R> for RwLock<T>

Available on crate feature std only.
Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>, E: Decode<R>> Decode<R> for Result<T, E>

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: Decode<R>, const SIZE: usize> Decode<R> for [T; SIZE]

Source§

fn decode(decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Source§

impl<R: Read, T: ?Sized> Decode<R> for PhantomData<T>

Source§

fn decode(_decoder: &mut Encoder<'_, R>) -> EncodingResult<Self>

Implementors§