{"id":59696,"library":"int-enum","title":"Int Enum","description":"A derive macro for conversion between integer and enum types.","status":"active","version":"1.2.0","language":"rust","source_language":null,"source_url":"https://github.com/Juici/int-enum-rs","tags":["enum","integer","conversion","derive"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nint-enum = \"1.2.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add int-enum","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"IntEnum","correct":"use int_enum::IntEnum;"}],"quickstart":{"code":"use int_enum::IntEnum;\n\n#[derive(IntEnum, Debug, PartialEq)]\n#[repr(u8)]\nenum Color {\n    Red = 0,\n    Green = 1,\n    Blue = 2,\n}\n\nfn main() {\n    let color = Color::from_int(1).unwrap();\n    assert_eq!(color, Color::Green);\n    println!(\"{:?}\", color);\n}","lang":"rust","description":"Converts an integer to an enum variant using the IntEnum derive macro."},"warnings":[],"env_vars":null,"search_vec":"'convers':7,15 'deriv':4,16 'enum':2,11,13 'int':1 'integ':9,14 'macro':5 'type':12","created_at":"2026-06-16T17:13:44.144402+00:00","updated_at":"2026-06-16T17:13:44.144402+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/Juici/int-enum-rs","github":"https://github.com/Juici/int-enum-rs","docs":"https://docs.rs/int-enum/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}