pub fn check_layers(entry: &Entry, required_layers: &[String]) -> Result<()> {
    let missing = missing_layers(entry, required_layers)?;
    if !missing.is_empty() {
        bail!("some required layers were not found!\n{:?}", missing);
    }
    Ok(())
}
/// Bail if any of the required layers is not supported by the instance.
Bail if any of the required layers is not supported by the instance.
Bail if any of the required layers is not supported by the instance .
pub fn check_layers(entry: &Entry, required_layers: &[String]) -> Result<()> {
    let missing = missing_layers(entry, required_layers)?;
    if !missing.is_empty() {
        bail!("some required layers were not found!\n{:?}", missing);
    }
    Ok(())
}
pub fn check_layers ( entry : & Entry , required_layers : & [ String ] ) -> Result < ( ) > { let missing = missing_layers ( entry , required_layers ) ? ; if ! missing . is_empty ( ) { bail ! ( " \n " missing ) ; } Ok ( ( ) ) }
Bail if any of the required layers is not supported by the instance.
Bail if any of the required layers is not supported by the instance .
entry
&Entry
required_layers
&[String]