Function cluFullTransmute::inline_transmute_or_errresult

source ·
pub const unsafe fn inline_transmute_or_errresult<D, To>(
    in_data: D
) -> Result<To, TransmuteErr<D>>
Available on crate features inline and support_size_check_transmute only.
Expand description

A inline constant function reinterprets the bits of a value of one type as another type.

§Safety

If the size does not match, an error occurs.