musli_core/de/
decode_owned.rs

1use crate::Allocator;
2
3use super::Decode;
4
5/// Decode to an owned value.
6///
7/// This is a simpler bound to use than `for<'de> Decode<'de, M, A>`.
8pub trait DecodeOwned<M, A>: for<'de> Decode<'de, M, A>
9where
10    A: Allocator,
11{
12}
13
14impl<M, D, A> DecodeOwned<M, A> for D
15where
16    D: for<'de> Decode<'de, M, A>,
17    A: Allocator,
18{
19}