pub(crate) fn collect_module_as_entry_point(&self) -> Result<EntryPoint> {
        let mut manifest = Manifest::default();
        for accessed_var in self.vars().iter() {
            let locator = accessed_var.locator();
            let name = self.get_var_name(locator);
            manifest.insert_var(accessed_var.clone(), name)?;
        }
        let spec = self.collect_entry_point_spec()?;

        let entry_point_declrs = self.entry_point_declrs();
        if entry_point_declrs.len() != 1 {
            return Err(Error::MULTI_ENTRY_POINTS);
        }
        let entry_point_declr = &entry_point_declrs[0];
        let entry_point = EntryPoint {
            name: entry_point_declr.name.to_owned(),
            exec_model: entry_point_declr.exec_model,
            manifest,
            spec,
        };
        Ok(entry_point)
    }
/// Collect resources discovered in this reflection session, no matter if
/// it's been used by any entry point.
Collect resources discovered in this reflection session, no matter if
it's been used by any entry point.
Collect resources discovered in this reflection session no matter if it ' s been used by any entry point .
pub(crate) fn collect_module_as_entry_point(&self) -> Result<EntryPoint> {
        let mut manifest = Manifest::default();
        for accessed_var in self.vars().iter() {
            let locator = accessed_var.locator();
            let name = self.get_var_name(locator);
            manifest.insert_var(accessed_var.clone(), name)?;
        }
        let spec = self.collect_entry_point_spec()?;
        let entry_point_declrs = self.entry_point_declrs();
        if entry_point_declrs.len() != 1 {
            return Err(Error::MULTI_ENTRY_POINTS);
        }
        let entry_point_declr = &entry_point_declrs[0];
        let entry_point = EntryPoint {
            name: entry_point_declr.name.to_owned(),
            exec_model: entry_point_declr.exec_model,
            manifest,
            spec,
        };
        Ok(entry_point)
    }
pub ( crate ) fn collect_module_as_entry_point ( & self ) -> Result < EntryPoint > { let mut manifest = Manifest :: default ( ) ; for accessed_var in self . vars ( ) . iter ( ) { let locator = accessed_var . locator ( ) ; let name = self . get_var_name ( locator ) ; manifest . insert_var ( accessed_var . clone ( ) , name ) ? ; } let spec = self . collect_entry_point_spec ( ) ? ; let entry_point_declrs = self . entry_point_declrs ( ) ; if entry_point_declrs . len ( ) != 1 { return Err ( Error :: MULTI_ENTRY_POINTS ) ; } let entry_point_declr = & entry_point_declrs [ 0 ] ; let entry_point = EntryPoint { name : entry_point_declr . name . to_owned ( ) , exec_model : entry_point_declr . exec_model , manifest , spec , } ; Ok ( entry_point ) }
Collect resources discovered in this reflection session, no matter if
it's been used by any entry point.
Collect resources discovered in this reflection session no matter if it ' s been used by any entry point .
&self
&self