pub fn try_transmute_ref<Src, Dst>(
src: &Src,
) -> Result<&Dst, ValidityError<&Src, Dst>>Expand description
Attempts to transmute &Src into &Dst.
A helper for try_transmute_ref!.
ยงPanics
try_transmute_ref may either produce a post-monomorphization error or a
panic if Dst is bigger or has a stricter alignment requirement than Src.
Otherwise, try_transmute_ref panics under the same circumstances as
is_bit_valid.