macro_rules! tpm_byte_view {
($name:ident) => { ... };
($name:ident<const $param:ident: usize>) => { ... };
(array $name:ident) => { ... };
(array $name:ident<const $param:ident: usize>) => { ... };
(@emit_array { $($generics:tt)* } { $($ty:tt)* }) => { ... };
(@emit { $($generics:tt)* } { $($ty:tt)* }) => { ... };
}Expand description
Generates the unchecked reinterpret casts shared by every
repr(transparent) wire view.
The bare form targets views backed by an unsized [u8] and also emits the
AsRef/AsMut byte-slice conversions. The array form targets views
backed by a fixed-size [u8; N] and emits only the unchecked casts.