pub trait Wiretyped<E, T: ?Sized> {
const WIRE_TYPE: WireType;
}Expand description
Encoders’ wire-type is relied upon by both relaxed and distinguished encoders, but it is written to be a separate trait so that distinguished decoders don’t necessarily implement relaxed decoding. This isn’t important in general; it’s very unlikely anything would implement distinguished decoding without also implementing the corresponding relaxed decoding, but this means that it can become a typo to use the relaxed decoding functions by accident when implementing the distinguished decoders, which could cause serious mishaps.
Required Associated Constants§
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<A, B, C, D, Ae, Be, Ce, De> Wiretyped<(Ae, Be, Ce, De), (A, B, C, D)> for ()
impl<A, B, C, D, Ae, Be, Ce, De> Wiretyped<(Ae, Be, Ce, De), (A, B, C, D)> for ()
Source§impl<A, B, C, D, E, Ae, Be, Ce, De, Ee> Wiretyped<(Ae, Be, Ce, De, Ee), (A, B, C, D, E)> for ()
impl<A, B, C, D, E, Ae, Be, Ce, De, Ee> Wiretyped<(Ae, Be, Ce, De, Ee), (A, B, C, D, E)> for ()
Source§impl<A, B, C, D, E, F, Ae, Be, Ce, De, Ee, Fe> Wiretyped<(Ae, Be, Ce, De, Ee, Fe), (A, B, C, D, E, F)> for ()
impl<A, B, C, D, E, F, Ae, Be, Ce, De, Ee, Fe> Wiretyped<(Ae, Be, Ce, De, Ee, Fe), (A, B, C, D, E, F)> for ()
Source§impl<A, B, C, D, E, F, G, Ae, Be, Ce, De, Ee, Fe, Ge> Wiretyped<(Ae, Be, Ce, De, Ee, Fe, Ge), (A, B, C, D, E, F, G)> for ()
impl<A, B, C, D, E, F, G, Ae, Be, Ce, De, Ee, Fe, Ge> Wiretyped<(Ae, Be, Ce, De, Ee, Fe, Ge), (A, B, C, D, E, F, G)> for ()
Source§impl<A, B, C, D, E, F, G, H, Ae, Be, Ce, De, Ee, Fe, Ge, He> Wiretyped<(Ae, Be, Ce, De, Ee, Fe, Ge, He), (A, B, C, D, E, F, G, H)> for ()
impl<A, B, C, D, E, F, G, H, Ae, Be, Ce, De, Ee, Fe, Ge, He> Wiretyped<(Ae, Be, Ce, De, Ee, Fe, Ge, He), (A, B, C, D, E, F, G, H)> for ()
Source§impl<A, B, C, D, E, F, G, H, I, Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie> Wiretyped<(Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie), (A, B, C, D, E, F, G, H, I)> for ()
impl<A, B, C, D, E, F, G, H, I, Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie> Wiretyped<(Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie), (A, B, C, D, E, F, G, H, I)> for ()
Source§impl<A, B, C, D, E, F, G, H, I, J, Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie, Je> Wiretyped<(Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie, Je), (A, B, C, D, E, F, G, H, I, J)> for ()
impl<A, B, C, D, E, F, G, H, I, J, Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie, Je> Wiretyped<(Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie, Je), (A, B, C, D, E, F, G, H, I, J)> for ()
Source§impl<A, B, C, D, E, F, G, H, I, J, K, Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie, Je, Ke> Wiretyped<(Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie, Je, Ke), (A, B, C, D, E, F, G, H, I, J, K)> for ()
impl<A, B, C, D, E, F, G, H, I, J, K, Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie, Je, Ke> Wiretyped<(Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie, Je, Ke), (A, B, C, D, E, F, G, H, I, J, K)> for ()
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie, Je, Ke, Le> Wiretyped<(Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie, Je, Ke, Le), (A, B, C, D, E, F, G, H, I, J, K, L)> for ()
impl<A, B, C, D, E, F, G, H, I, J, K, L, Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie, Je, Ke, Le> Wiretyped<(Ae, Be, Ce, De, Ee, Fe, Ge, He, Ie, Je, Ke, Le), (A, B, C, D, E, F, G, H, I, J, K, L)> for ()
Source§impl<E, T: ?Sized> Wiretyped<Packed<E>, T> for ()
Packed encodings always prefer to encode length delimited.
impl<E, T: ?Sized> Wiretyped<Packed<E>, T> for ()
Packed encodings always prefer to encode length delimited.