macro_rules! impl_ledecode_auto {
($ty:ty) => { ... };
}Expand description
Implement the [LeDecode] trait for a numeric type with fixed size.
This is used to unify little-endian deserialization for primitive types
like u16, u32, f32, etc.
$ty: concrete numeric type (e.g. u16, i32, f32)
ยงExample
impl_ledecode_auto!(u32);
impl_ledecode_auto!(f32);