pub fn disk_type(&self) -> &'static str {
        if self.ram {
            "RAM"
        } else if self.crypted {
            "crypt"
        } else if self.lvm {
            "LVM"
        } else {
            match (self.removable, self.rotational) {
                (Some(true), _) => "remov",
                (Some(false), Some(true)) => "HDD",
                (Some(false), Some(false)) => "SSD",
                _ => "",
            }
        }
    }
/// a synthetic code trying to express the essence of the type of media,
/// an empty str being returned when information couldn't be gathered.
/// This code is for humans and may change in future minor versions.
a synthetic code trying to express the essence of the type of media,
an empty str being returned when information couldn't be gathered.
This code is for humans and may change in future minor versions.
a synthetic code trying to express the essence of the type of media an empty str being returned when information couldn ' t be gathered . This code is for humans and may change in future minor versions .
pub fn disk_type(&self) -> &'static str {
        if self.ram {
            "RAM"
        } else if self.crypted {
            "crypt"
        } else if self.lvm {
            "LVM"
        } else {
            match (self.removable, self.rotational) {
                (Some(true), _) => "remov",
                (Some(false), Some(true)) => "HDD",
                (Some(false), Some(false)) => "SSD",
                _ => "",
            }
        }
    }
pub fn disk_type ( & self ) -> & ' static str { if self . ram { " " } else if self . crypted { " " } else if self . lvm { " " } else { match ( self . removable , self . rotational ) { ( Some ( true ) , _ ) => " " , ( Some ( false ) , Some ( true ) ) => " " , ( Some ( false ) , Some ( false ) ) => " " , _ => " " , } } }
a synthetic code trying to express the essence of the type of media,
an empty str being returned when information couldn't be gathered.
a synthetic code trying to express the essence of the type of media an empty str being returned when information couldn ' t be gathered .
&self
&self