/// Validates a list of CapabilityDecls independently.
Validates a list of CapabilityDecls independently.
Validates a list of CapabilityDecls independently .
pub fn validate_capabilities(capabilities: &Vec<fsys::CapabilityDecl>) -> Result<(), ErrorList> {
    let mut ctx = ValidationContext::default();
    for capability in capabilities {
        ctx.validate_capability_decl(capability);
    }
    if ctx.errors.is_empty() {
        Ok(())
    } else {
        Err(ErrorList::new(ctx.errors))
    }
}
pub fn validate_capabilities ( capabilities : & Vec < fsys :: CapabilityDecl > ) -> Result < ( ) , ErrorList > { let mut ctx = ValidationContext :: default ( ) ; for capability in capabilities { ctx . validate_capability_decl ( capability ) ; } if ctx . errors . is_empty ( ) { Ok ( ( ) ) } else { Err ( ErrorList :: new ( ctx . errors ) ) } }
Validates a list of CapabilityDecls independently.
Validates a list of CapabilityDecls independently .
capabilities
&Vec<fsys::CapabilityDecl>