You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ascii.rs
    path of file: ./repos/holochain/crates/kitsune_p2p/dht/src/arq
    
    the code of the file until where you have to start completion: //! Methods to help with ascii representations of Arqs

use kitsune_p2p_dht_arc::DhtArcRange;

use crate::{spacetime::Topology, Loc};

use super::{Arq, ArqStart};

/// Scale a number in a smaller space (specified by `le
    
pub fn add_location_ascii(mut s: String, locs: Vec<Loc>) -> String {
    let len = s.len();

    let mut buf = vec![0; len];
    for loc in locs {
        let loc = loc_downscale(len, loc);
        buf[loc] += 1;
    }
    for (i, v) in buf.into_iter().enumerate() {
        if v > 0 {
            // add hex representation of number of ops in this bucket
            let c = format!("{:x}", v.min(0xf));
            s.replace_range(i..i + 1, &c);
        }
    }
    s
}