fn has_root_device(&self) -> bool {
        // If there is a root device, it would be at the top of the list.
        if let Some(block) = self.list.get(0) {
            block.lock().expect("Poisoned lock").is_root_device()
        } else {
            false
        }
    }
/// Specifies whether there is a root block device already present in the list.
Specifies whether there is a root block device already present in the list.
Specifies whether there is a root block device already present in the list .
fn has_root_device(&self) -> bool {
        // If there is a root device, it would be at the top of the list.
        if let Some(block) = self.list.get(0) {
            block.lock().expect("Poisoned lock").is_root_device()
        } else {
            false
        }
    }
fn has_root_device ( & self ) -> bool { // If there is a root device, it would be at the top of the list. if let Some ( block ) = self . list . get ( 0 ) { block . lock ( ) . expect ( " " ) . is_root_device ( ) } else { false } }
Specifies whether there is a root block device already present in the list.
Specifies whether there is a root block device already present in the list .
&self
&self