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: skip.rs
    path of file: ./repos/hash/libs/deer/desert/src
    
    the code of the file until where you have to start completion: use crate::{deserializer::Deserializer, Token};

fn scan_object(deserializer: &Deserializer, stop: &Token) -> usize {
    let mut ob
    
fn scan_object(deserializer: &Deserializer, stop: &Token) -> usize {
    let mut objects: usize = 0;
    let mut arrays: usize = 0;

    let mut n = 0;

    loop {
        let Some(token) = deserializer.peek_n(n) else {
            // we're at the end
            return n;
        };

        if token == *stop && arrays == 0 && objects == 0 {
            // we're at the outer layer, meaning we can know where we end
            // need to increment by one as we want to also skip the ObjectEnd
            return n + 1;
        }

        match token {
            Token::Array { .. } => arrays += 1,
            Token::ArrayEnd => arrays = arrays.saturating_sub(1),
            Token::Object { .. } => objects += 1,
            Token::ObjectEnd => objects = objects.saturating_sub(1),
            _ => {}
        }

        n += 1;
    }
}