pub fn resource_accesses(
        &self,
    ) -> impl Iterator<
        Item = (
            /* core: */ u8,
            /* priority: */ Option<u8>, // `None` means `init`
            /* resource: */ &Ident,
        ),
    > {
        self.mains
            .iter()
            .zip(0..)
            .flat_map(|(main, core)| {
                main.init
                    .iter()
                    .flat_map(move |init| {
                        init.args.resources.iter().map(move |res| (core, None, res))
                    })
                    .chain(main.idle.iter().flat_map(move |idle| {
                        idle.args
                            .resources
                            .iter()
                            .map(move |res| (core, Some(0), res))
                    }))
            })
            .chain(self.tasks.values().flat_map(|task| {
                task.args
                    .resources
                    .iter()
                    .map(move |res| (task.args.core, Some(task.args.priority), res))
            }))
    }
/// Returns an iterator over all resource accesses.
///
/// Each resource access include the priority it's accessed at (`u8`) and the name of the
/// resource (`Ident`). A resource may appear more than once in this iterator
Returns an iterator over all resource accesses.
Each resource access include the priority it's accessed at (`u8`) and the name of the
resource (`Ident`). A resource may appear more than once in this iterator
Returns an iterator over all resource accesses . Each resource access include the priority it ' s accessed at ( ` u8 ` ) and the name of the resource ( ` Ident ` ) . A resource may appear more than once in this iterator
pub fn resource_accesses(
        &self,
    ) -> impl Iterator<
        Item = (
            /* core: */ u8,
            /* priority: */ Option<u8>, // `None` means `init`
            /* resource: */ &Ident,
        ),
    > {
        self.mains
            .iter()
            .zip(0..)
            .flat_map(|(main, core)| {
                main.init
                    .iter()
                    .flat_map(move |init| {
                        init.args.resources.iter().map(move |res| (core, None, res))
                    })
                    .chain(main.idle.iter().flat_map(move |idle| {
                        idle.args
                            .resources
                            .iter()
                            .map(move |res| (core, Some(0), res))
                    }))
            })
            .chain(self.tasks.values().flat_map(|task| {
                task.args
                    .resources
                    .iter()
                    .map(move |res| (task.args.core, Some(task.args.priority), res))
            }))
    }
pub fn resource_accesses ( & self , ) -> impl Iterator < Item = ( /* core: */ u8 , /* priority: */ Option < u8 > , // `None` means `init` /* resource: */ & Ident , ) , > { self . mains . iter ( ) . zip ( 0 .. ) . flat_map ( | ( main , core ) | { main . init . iter ( ) . flat_map ( move | init | { init . args . resources . iter ( ) . map ( move | res | ( core , None , res ) ) } ) . chain ( main . idle . iter ( ) . flat_map ( move | idle | { idle . args . resources . iter ( ) . map ( move | res | ( core , Some ( 0 ) , res ) ) } ) ) } ) . chain ( self . tasks . values ( ) . flat_map ( | task | { task . args . resources . iter ( ) . map ( move | res | ( task . args . core , Some ( task . args . priority ) , res ) ) } ) ) }
Returns an iterator over all resource accesses.
Returns an iterator over all resource accesses .
&self
&self