pub fn write_allocation_bytes<Prov, Extra, Bytes, 'tcx>(
    tcx: TyCtxt<'tcx>,
    alloc: &Allocation<Prov, Extra, Bytes>,
    w: &mut dyn Write,
    prefix: &str
) -> Result<(), Error>where
    Prov: Provenance,
    Bytes: AllocBytes,
Expand description

The prefix argument allows callers to add an arbitrary prefix before each line (even if there is only one line). Note that your prefix should contain a trailing space as the lines are printed directly after it.