pub fn name(&self) -> &str
    {
        let len: usize = (&self.name[..]).iter().position(|b| *b == 0)
            .unwrap_or(32);

        // TODO: handle the case where the kernel gives us non-utf8.
        str::from_utf8(&self.name[..len])
            .expect("mode name not valid utf8")
    }
/// Get's the name of the current mode.
Get's the name of the current mode.
Get ' s the name of the current mode .
pub fn name(&self) -> &str
    {
        let len: usize = (&self.name[..]).iter().position(|b| *b == 0)
            .unwrap_or(32);
        // TODO: handle the case where the kernel gives us non-utf8.
        str::from_utf8(&self.name[..len])
            .expect("mode name not valid utf8")
    }
pub fn name ( & self ) -> & str { let len : usize = ( & self . name [ .. ] ) . iter ( ) . position ( | b | * b == 0 ) . unwrap_or ( 32 ) ; // TODO: handle the case where the kernel gives us non-utf8. str :: from_utf8 ( & self . name [ .. len ] ) . expect ( " " ) }
Get's the name of the current mode.
Get ' s the name of the current mode .
&self