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: graph.rs
    path of file: ./repos/Fyrox/fyrox-resource/src
    
    the code of the file until where you have to start completion: //! Resource dependency graph. See [`ResourceDependencyGraph`] docs for more info.

use crate::{collect_used_resources, state::ResourceState, untyped::UntypedResource};
use fxhash::FxHashSet;

/// A node of [`ResourceDependencyGraph`].
pub struct ResourceGraphNode {
    /// A resource associated with the graph node.
    pub resource: UntypedResource,
    /// A list of children nodes of the graph.
    pub children: Vec<Resource
    
    fn resource_dependency_for_each() {
        let mut graph = ResourceDependencyGraph::new(&UntypedResource::new_pending(
            PathBuf::from("/foo").into(),
            Uuid::default(),
        ));
        graph
            .root
            .children
            .push(ResourceGraphNode::new(&UntypedResource::new_pending(
                PathBuf::from("/bar").into(),
                Uuid::default(),
            )));

        let mut uuids = Vec::new();
        graph.for_each(&mut |r: &UntypedResource| uuids.push(r.type_uuid()));
        assert_eq!(uuids, [Uuid::default(), Uuid::default()]);
    }