Function rustc_middle::mir::interpret::get_slice_bytes
source · pub fn get_slice_bytes<'tcx>(
cx: &impl HasDataLayout,
val: ConstValue<'tcx>
) -> &'tcx [u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
Expand description
Gets the bytes of a constant slice value.