pub(crate) fn is_private(&self, private_registries: &[&str]) -> bool {
        self.publish.as_ref().map_or(false, |v| {
            if v.is_empty() {
                true
            } else {
                v.iter()
                    .all(|reg| private_registries.contains(&reg.as_str()))
            }
        })
    }
/// Returns true if the crate is marked as `publish = false`, or
/// it is only published to the specified private registries
Returns true if the crate is marked as `publish = false`, or
it is only published to the specified private registries
Returns true if the crate is marked as ` publish = false ` or it is only published to the specified private registries
pub(crate) fn is_private(&self, private_registries: &[&str]) -> bool {
        self.publish.as_ref().map_or(false, |v| {
            if v.is_empty() {
                true
            } else {
                v.iter()
                    .all(|reg| private_registries.contains(&reg.as_str()))
            }
        })
    }
pub ( crate ) fn is_private ( & self , private_registries : & [ & str ] ) -> bool { self . publish . as_ref ( ) . map_or ( false , | v | { if v . is_empty ( ) { true } else { v . iter ( ) . all ( | reg | private_registries . contains ( & reg . as_str ( ) ) ) } } ) }
Returns true if the crate is marked as `publish = false`, or
it is only published to the specified private registries
Returns true if the crate is marked as ` publish = false ` or it is only published to the specified private registries
&self
private_registries
&[&str]