async fn find_scoped_framework_capability_source<'a>(
    use_decl: &'a UseDecl,
    target_moniker: &'a AbsoluteMoniker,
) -> Result<Option<CapabilitySource>, ModelError> {
    if let Ok(capability) = FrameworkCapability::framework_from_use_decl(use_decl) {
        return Ok(Some(CapabilitySource::Framework {
            capability,
            scope_moniker: Some(target_moniker.clone()),
        }));
    }
    return Ok(None);
}
/// Check if a used capability is a framework service, and if so return a framework `CapabilitySource`.
Check if a used capability is a framework service, and if so return a framework `CapabilitySource`.
Check if a used capability is a framework service and if so return a framework ` CapabilitySource ` .
async fn find_scoped_framework_capability_source<'a>(
    use_decl: &'a UseDecl,
    target_moniker: &'a AbsoluteMoniker,
) -> Result<Option<CapabilitySource>, ModelError> {
    if let Ok(capability) = FrameworkCapability::framework_from_use_decl(use_decl) {
        return Ok(Some(CapabilitySource::Framework {
            capability,
            scope_moniker: Some(target_moniker.clone()),
        }));
    }
    return Ok(None);
}
async fn find_scoped_framework_capability_source < ' a > ( use_decl : & ' a UseDecl , target_moniker : & ' a AbsoluteMoniker , ) -> Result < Option < CapabilitySource > , ModelError > { if let Ok ( capability ) = FrameworkCapability :: framework_from_use_decl ( use_decl ) { return Ok ( Some ( CapabilitySource :: Framework { capability , scope_moniker : Some ( target_moniker . clone ( ) ) , } ) ) ; } return Ok ( None ) ; }
Check if a used capability is a framework service, and if so return a framework `CapabilitySource`.
Check if a used capability is a framework service and if so return a framework ` CapabilitySource ` .
use_decl
&'a UseDecl
target_moniker
&'a AbsoluteMoniker