[−][src]Function safe_transmute::pod::guarded_transmute_pod_vec_permissive
pub unsafe fn guarded_transmute_pod_vec_permissive<T: PodTransmutable>(
bytes: Vec<u8>
) -> Result<Vec<T>, Error>
Deprecated since 0.11.0:
see pod::transmute_vec()
with PermissiveGuard
for the equivalent behavior
Transform a byte vector into a vector of POD.
The vector's allocated byte buffer will be reused when possible, and have as many instances of a type as will fit, rounded down. Extraneous data is ignored.