fn filter_unusable(&self, devices: Vec<Self::Output>) -> Result<Vec<Self::Output>> {
        Ok(devices
            .into_iter()
            .filter(|device| {
                !IGNORED_PREFIXES
                    .iter()
                    .any(|p| device.sys_path().starts_with(p))
            })
            .collect())
    }
/// This attempts to filter out other block devices like /dev/loop and /dev/ram devices.
/// It's currently pretty dumb so it's in it's own function in case you want to remove or
/// overwite this functionality for your type
This attempts to filter out other block devices like /dev/loop and /dev/ram devices.
It's currently pretty dumb so it's in it's own function in case you want to remove or
overwite this functionality for your type
This attempts to filter out other block devices like / dev / loop and / dev / ram devices . It ' s currently pretty dumb so it ' s in it ' s own function in case you want to remove or overwite this functionality for your type
fn filter_unusable(&self, devices: Vec<Self::Output>) -> Result<Vec<Self::Output>> {
        Ok(devices
            .into_iter()
            .filter(|device| {
                !IGNORED_PREFIXES
                    .iter()
                    .any(|p| device.sys_path().starts_with(p))
            })
            .collect())
    }
fn filter_unusable ( & self , devices : Vec < Self :: Output > ) -> Result < Vec < Self :: Output > > { Ok ( devices . into_iter ( ) . filter ( | device | { ! IGNORED_PREFIXES . iter ( ) . any ( | p | device . sys_path ( ) . starts_with ( p ) ) } ) . collect ( ) ) }
This attempts to filter out other block devices like /dev/loop and /dev/ram devices.
This attempts to filter out other block devices like / dev / loop and / dev / ram devices .
&self
devices
Vec<Self::Output>
&self
devices
Vec<Self::Output>