pub fn show_swedish_values(value: &Value) -> String{
    match value {
        Value::Nil              => String::from("ingenting"),
        Value::Boolean(false)   => String::from("falskt"),
        Value::Boolean(true)    => String::from("sant"),
        Value::LightUserData(_) => String::from("pekare (Light user data)"),
        Value::Integer(x)       => x.to_string(),
        Value::Number(x)        => x.to_string(),
        Value::String(lua_str)  => format!("\"{}\"", lua_str.to_str().unwrap()),
        Value::Table(_)         => String::from("tabell"),
        Value::Function(_)      => String::from("funktion"),
        Value::Thread(_)        => String::from("tråd"),
        Value::UserData(_)      => String::from("userData"),
        Value::Error(error)     => show_escaped_idents(&error.to_string()),
    }
}
/// represent a rlua::Value in Swedish
/// This function could be improved a lot
represent a rlua::Value in Swedish
This function could be improved a lot
represent a rlua :: Value in Swedish This function could be improved a lot
pub fn show_swedish_values(value: &Value) -> String{
    match value {
        Value::Nil              => String::from("ingenting"),
        Value::Boolean(false)   => String::from("falskt"),
        Value::Boolean(true)    => String::from("sant"),
        Value::LightUserData(_) => String::from("pekare (Light user data)"),
        Value::Integer(x)       => x.to_string(),
        Value::Number(x)        => x.to_string(),
        Value::String(lua_str)  => format!("\"{}\"", lua_str.to_str().unwrap()),
        Value::Table(_)         => String::from("tabell"),
        Value::Function(_)      => String::from("funktion"),
        Value::Thread(_)        => String::from("tråd"),
        Value::UserData(_)      => String::from("userData"),
        Value::Error(error)     => show_escaped_idents(&error.to_string()),
    }
}
pub fn show_swedish_values ( value : & Value ) -> String { match value { Value :: Nil => String :: from ( " " ) , Value :: Boolean ( false ) => String :: from ( " " ) , Value :: Boolean ( true ) => String :: from ( " " ) , Value :: LightUserData ( _ ) => String :: from ( " " ) , Value :: Integer ( x ) => x . to_string ( ) , Value :: Number ( x ) => x . to_string ( ) , Value :: String ( lua_str ) => format ! ( " \" \" " lua_str to_str ( ) unwrap ( ) ) , Value :: Table ( _ ) => String :: from ( " " ) , Value :: Function ( _ ) => String :: from ( " " ) , Value :: Thread ( _ ) => String :: from ( " ) , Value :: UserData ( _ ) => String :: from ( " " ) , Value :: Error ( error ) => show_escaped_idents ( & error . to_string ( ) ) , } }
represent a rlua::Value in Swedish
This function could be improved a lot
represent a rlua :: Value in Swedish This function could be improved a lot
value
&Value
value
&Value