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: 0078-subsets.rs
    path of file: ./repos/NeetCode-Solutions/10_Backtracking/01_Subsets
    
    the code of the file until where you have to start completion: /*
Problem: LeetCode 78 - Subsets

Key Idea:
To genera
    
    pub fn subsets(nums: Vec<i32>) -> Vec<Vec<i32>> {
        let mut result: Vec<Vec<i32>> = Vec::new();

        let mut current_subset: Vec<i32> = Vec::new();
        Self::backtrack(0, &mut current_subset, &nums, &mut result);

        result
    }