fn count_snap() -> Option<usize> {
        let snap_dir = Path::new("/var/lib/snapd/snaps");
        if let Some(entries) = get_entries(snap_dir) {
            return Some(
                entries
                    .iter()
                    .filter(|&x| path_extension(x).unwrap_or_default() == "snap")
                    .into_iter()
                    .count(),
            );
        }

        None
    }
/// Returns the number of installed packages for systems
/// that have `snap` installed.
Returns the number of installed packages for systems
that have `snap` installed.
Returns the number of installed packages for systems that have ` snap ` installed .
fn count_snap() -> Option<usize> {
        let snap_dir = Path::new("/var/lib/snapd/snaps");
        if let Some(entries) = get_entries(snap_dir) {
            return Some(
                entries
                    .iter()
                    .filter(|&x| path_extension(x).unwrap_or_default() == "snap")
                    .into_iter()
                    .count(),
            );
        }
        None
    }
fn count_snap ( ) -> Option < usize > { let snap_dir = Path :: new ( " " ) ; if let Some ( entries ) = get_entries ( snap_dir ) { return Some ( entries . iter ( ) . filter ( | & x | path_extension ( x ) . unwrap_or_default ( ) == " " ) . into_iter ( ) . count ( ) , ) ; } None }
Returns the number of installed packages for systems
that have `snap` installed.
Returns the number of installed packages for systems that have ` snap ` installed .