Trait bincode::de::BorrowDecode

source ·
pub trait BorrowDecode<'de>: Sized {
    // Required method
    fn borrow_decode<D: BorrowDecoder<'de>>(
        decoder: &mut D,
    ) -> Result<Self, DecodeError>;
}
Expand description

Trait that makes a type able to be decoded, akin to serde’s Deserialize trait.

This trait should be implemented for types that contain borrowed data, like &str and &[u8]. If your type does not have borrowed data, consider implementing Decode instead.

This trait will be automatically implemented if you enable the derive feature and add #[derive(bincode::Decode)] to a type with a lifetime.

Required Methods§

source

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

Attempt to decode this type with the given BorrowDecode.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, 'de: 'a> BorrowDecode<'de> for &'a str

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'a, 'de: 'a> BorrowDecode<'de> for &'a [u8]

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'cow, T> BorrowDecode<'cow> for Cow<'cow, T>
where T: ToOwned + ?Sized, &'cow T: BorrowDecode<'cow>,

source§

fn borrow_decode<D: BorrowDecoder<'cow>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for &'de Path

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for IpAddr

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for SocketAddr

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for bool

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for char

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for f32

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for f64

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for i8

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for i16

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for i32

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for i64

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for i128

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for isize

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for u8

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for u16

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for u32

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for u64

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for u128

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for ()

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for usize

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for Box<str>

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for CString

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for String

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for Arc<str>

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for Ipv4Addr

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for Ipv6Addr

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for SocketAddrV4

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for SocketAddrV6

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for AtomicBool

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for AtomicI8

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for AtomicI16

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for AtomicI32

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for AtomicI64

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for AtomicIsize

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for AtomicU8

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for AtomicU16

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for AtomicU32

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for AtomicU64

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for AtomicUsize

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for Duration

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for PathBuf

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for SystemTime

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for NonZeroI8

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for NonZeroI16

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for NonZeroI32

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for NonZeroI64

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for NonZeroI128

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for NonZeroIsize

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for NonZeroU8

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for NonZeroU16

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for NonZeroU32

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for NonZeroU64

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for NonZeroU128

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de> BorrowDecode<'de> for NonZeroUsize

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, A> BorrowDecode<'de> for (A,)
where A: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, A, B> BorrowDecode<'de> for (A, B)
where A: BorrowDecode<'de>, B: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, A, B, C> BorrowDecode<'de> for (A, B, C)
where A: BorrowDecode<'de>, B: BorrowDecode<'de>, C: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, A, B, C, D> BorrowDecode<'de> for (A, B, C, D)
where A: BorrowDecode<'de>, B: BorrowDecode<'de>, C: BorrowDecode<'de>, D: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, A, B, C, D, E> BorrowDecode<'de> for (A, B, C, D, E)
where A: BorrowDecode<'de>, B: BorrowDecode<'de>, C: BorrowDecode<'de>, D: BorrowDecode<'de>, E: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, A, B, C, D, E, F> BorrowDecode<'de> for (A, B, C, D, E, F)
where A: BorrowDecode<'de>, B: BorrowDecode<'de>, C: BorrowDecode<'de>, D: BorrowDecode<'de>, E: BorrowDecode<'de>, F: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, A, B, C, D, E, F, G> BorrowDecode<'de> for (A, B, C, D, E, F, G)
where A: BorrowDecode<'de>, B: BorrowDecode<'de>, C: BorrowDecode<'de>, D: BorrowDecode<'de>, E: BorrowDecode<'de>, F: BorrowDecode<'de>, G: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, A, B, C, D, E, F, G, H> BorrowDecode<'de> for (A, B, C, D, E, F, G, H)
where A: BorrowDecode<'de>, B: BorrowDecode<'de>, C: BorrowDecode<'de>, D: BorrowDecode<'de>, E: BorrowDecode<'de>, F: BorrowDecode<'de>, G: BorrowDecode<'de>, H: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, A, B, C, D, E, F, G, H, I> BorrowDecode<'de> for (A, B, C, D, E, F, G, H, I)
where A: BorrowDecode<'de>, B: BorrowDecode<'de>, C: BorrowDecode<'de>, D: BorrowDecode<'de>, E: BorrowDecode<'de>, F: BorrowDecode<'de>, G: BorrowDecode<'de>, H: BorrowDecode<'de>, I: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, A, B, C, D, E, F, G, H, I, J> BorrowDecode<'de> for (A, B, C, D, E, F, G, H, I, J)
where A: BorrowDecode<'de>, B: BorrowDecode<'de>, C: BorrowDecode<'de>, D: BorrowDecode<'de>, E: BorrowDecode<'de>, F: BorrowDecode<'de>, G: BorrowDecode<'de>, H: BorrowDecode<'de>, I: BorrowDecode<'de>, J: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, A, B, C, D, E, F, G, H, I, J, K> BorrowDecode<'de> for (A, B, C, D, E, F, G, H, I, J, K)
where A: BorrowDecode<'de>, B: BorrowDecode<'de>, C: BorrowDecode<'de>, D: BorrowDecode<'de>, E: BorrowDecode<'de>, F: BorrowDecode<'de>, G: BorrowDecode<'de>, H: BorrowDecode<'de>, I: BorrowDecode<'de>, J: BorrowDecode<'de>, K: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, A, B, C, D, E, F, G, H, I, J, K, L> BorrowDecode<'de> for (A, B, C, D, E, F, G, H, I, J, K, L)
where A: BorrowDecode<'de>, B: BorrowDecode<'de>, C: BorrowDecode<'de>, D: BorrowDecode<'de>, E: BorrowDecode<'de>, F: BorrowDecode<'de>, G: BorrowDecode<'de>, H: BorrowDecode<'de>, I: BorrowDecode<'de>, J: BorrowDecode<'de>, K: BorrowDecode<'de>, L: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, A, B, C, D, E, F, G, H, I, J, K, L, M> BorrowDecode<'de> for (A, B, C, D, E, F, G, H, I, J, K, L, M)
where A: BorrowDecode<'de>, B: BorrowDecode<'de>, C: BorrowDecode<'de>, D: BorrowDecode<'de>, E: BorrowDecode<'de>, F: BorrowDecode<'de>, G: BorrowDecode<'de>, H: BorrowDecode<'de>, I: BorrowDecode<'de>, J: BorrowDecode<'de>, K: BorrowDecode<'de>, L: BorrowDecode<'de>, M: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, A, B, C, D, E, F, G, H, I, J, K, L, M, N> BorrowDecode<'de> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)
where A: BorrowDecode<'de>, B: BorrowDecode<'de>, C: BorrowDecode<'de>, D: BorrowDecode<'de>, E: BorrowDecode<'de>, F: BorrowDecode<'de>, G: BorrowDecode<'de>, H: BorrowDecode<'de>, I: BorrowDecode<'de>, J: BorrowDecode<'de>, K: BorrowDecode<'de>, L: BorrowDecode<'de>, M: BorrowDecode<'de>, N: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> BorrowDecode<'de> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)
where A: BorrowDecode<'de>, B: BorrowDecode<'de>, C: BorrowDecode<'de>, D: BorrowDecode<'de>, E: BorrowDecode<'de>, F: BorrowDecode<'de>, G: BorrowDecode<'de>, H: BorrowDecode<'de>, I: BorrowDecode<'de>, J: BorrowDecode<'de>, K: BorrowDecode<'de>, L: BorrowDecode<'de>, M: BorrowDecode<'de>, N: BorrowDecode<'de>, O: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> BorrowDecode<'de> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)
where A: BorrowDecode<'de>, B: BorrowDecode<'de>, C: BorrowDecode<'de>, D: BorrowDecode<'de>, E: BorrowDecode<'de>, F: BorrowDecode<'de>, G: BorrowDecode<'de>, H: BorrowDecode<'de>, I: BorrowDecode<'de>, J: BorrowDecode<'de>, K: BorrowDecode<'de>, L: BorrowDecode<'de>, M: BorrowDecode<'de>, N: BorrowDecode<'de>, O: BorrowDecode<'de>, P: BorrowDecode<'de>,

source§

fn borrow_decode<BD: BorrowDecoder<'de>>( decoder: &mut BD, ) -> Result<Self, DecodeError>

source§

impl<'de, K, V> BorrowDecode<'de> for BTreeMap<K, V>
where K: BorrowDecode<'de> + Ord, V: BorrowDecode<'de>,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, K, V, S> BorrowDecode<'de> for HashMap<K, V, S>
where K: BorrowDecode<'de> + Eq + Hash, V: BorrowDecode<'de>, S: BuildHasher + Default,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for Bound<T>
where T: BorrowDecode<'de>,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for Option<T>
where T: BorrowDecode<'de>,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for Box<[T]>
where T: BorrowDecode<'de> + 'de,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for Box<T>
where T: BorrowDecode<'de>,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for BinaryHeap<T>
where T: BorrowDecode<'de> + Ord,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for BTreeSet<T>
where T: BorrowDecode<'de> + Ord,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for VecDeque<T>
where T: BorrowDecode<'de>,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for Rc<[T]>
where T: BorrowDecode<'de> + 'de,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for Rc<T>
where T: BorrowDecode<'de>,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for Arc<[T]>
where T: BorrowDecode<'de> + 'de,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for Arc<T>
where T: BorrowDecode<'de>,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for Vec<T>
where T: BorrowDecode<'de>,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for Cell<T>
where T: BorrowDecode<'de>,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for RefCell<T>
where T: BorrowDecode<'de>,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for PhantomData<T>

source§

impl<'de, T> BorrowDecode<'de> for Range<T>
where T: BorrowDecode<'de>,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for RangeInclusive<T>
where T: BorrowDecode<'de>,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for Mutex<T>
where T: BorrowDecode<'de>,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T> BorrowDecode<'de> for RwLock<T>
where T: BorrowDecode<'de>,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T, S> BorrowDecode<'de> for HashSet<T, S>
where T: BorrowDecode<'de> + Eq + Hash, S: BuildHasher + Default,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T, U> BorrowDecode<'de> for Result<T, U>
where T: BorrowDecode<'de>, U: BorrowDecode<'de>,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

source§

impl<'de, T, const N: usize> BorrowDecode<'de> for [T; N]
where T: BorrowDecode<'de> + Sized + 'static,

source§

fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>

Implementors§