fn try_from_char(value: char) -> Result<Status> {
        match value {
            'R' => Ok(Status::Running),
            'S' => Ok(Status::Sleeping),
            'D' => Ok(Status::Waiting),
            'Z' => Ok(Status::Zombie),
            'T' => Ok(Status::Stopped),
            't' => Ok(Status::Tracing),
            'X' | 'x' => Ok(Status::Dead),
            'K' => Ok(Status::Wakekill),
            'W' => Ok(Status::Waking),
            'P' => Ok(Status::Parked),
            'I' => Ok(Status::Idle),
            other => {
                let inner = io::Error::from(io::ErrorKind::InvalidData);

                Err(Error::from(inner).with_message(format!("Unknown process state {}", other)))
            }
        }
    }
// Previously there were `TryFrom<char>` and `FromStr` implementations,
// but they were leaking into the public API. See #260
Previously there were `TryFrom` and `FromStr` implementations,
but they were leaking into the public API.
Previously there were ` TryFrom ` and ` FromStr ` implementations but they were leaking into the public API .
fn try_from_char(value: char) -> Result<Status> {
        match value {
            'R' => Ok(Status::Running),
            'S' => Ok(Status::Sleeping),
            'D' => Ok(Status::Waiting),
            'Z' => Ok(Status::Zombie),
            'T' => Ok(Status::Stopped),
            't' => Ok(Status::Tracing),
            'X' | 'x' => Ok(Status::Dead),
            'K' => Ok(Status::Wakekill),
            'W' => Ok(Status::Waking),
            'P' => Ok(Status::Parked),
            'I' => Ok(Status::Idle),
            other => {
                let inner = io::Error::from(io::ErrorKind::InvalidData);
                Err(Error::from(inner).with_message(format!("Unknown process state {}", other)))
            }
        }
    }
fn try_from_char ( value : char ) -> Result < Status > { match value { 'R' => Ok ( Status :: Running ) , 'S' => Ok ( Status :: Sleeping ) , 'D' => Ok ( Status :: Waiting ) , 'Z' => Ok ( Status :: Zombie ) , 'T' => Ok ( Status :: Stopped ) , 't' => Ok ( Status :: Tracing ) , 'X' | 'x' => Ok ( Status :: Dead ) , 'K' => Ok ( Status :: Wakekill ) , 'W' => Ok ( Status :: Waking ) , 'P' => Ok ( Status :: Parked ) , 'I' => Ok ( Status :: Idle ) , other => { let inner = io :: Error :: from ( io :: ErrorKind :: InvalidData ) ; Err ( Error :: from ( inner ) . with_message ( format ! ( " " other ) ) ) } } }
Previously there were `TryFrom<char>` and `FromStr` implementations,
but they were leaking into the public API.
Previously there were ` TryFrom<char > ` and ` FromStr ` implementations but they were leaking into the public API .
value
char
value
char