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: print-resources.rs
    path of file: ./repos/bevy-cheatbook/src/code013/examples
    
    the code of the file until where you have to start completion: use bevy::app::AppExit;
use bevy::prelude::*;
use bevy::render::{RenderApp, Render, RenderSet};

// ANCHOR: example
fn print_resources(world: &World) {
    let components = world.components();

    let mut r: Vec<_> = world
        .storages()
        .resources
        .iter()
        .map(|(id, _)| components.g
    
fn main() {
    let mut app = App::new();
    app.add_plugins(DefaultPlugins);

// ANCHOR: app
// print main world resources
app.add_systems(Last, print_resources);

// print render world resources
app.sub_app_mut(RenderApp)
    .add_systems(Render, print_resources.in_set(RenderSet::Render));
// ANCHOR_END: app

    app.add_systems(Last, quit);

    app.run();
}