{"id":59249,"library":"text-size","title":"text-size","description":"Newtypes for text offsets.","status":"active","version":"1.1.1","language":"rust","source_language":null,"source_url":"https://github.com/rust-analyzer/text-size","tags":["text","offset","newtype","editor"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntext-size = \"1.1.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add text-size","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"TextSize","correct":"use text_size::TextSize;"}],"quickstart":{"code":"use text_size::TextSize;\n\nfn main() {\n    let offset = TextSize::from(42u32);\n    println!(\"Offset: {}\", offset);\n}","lang":"rust","description":"Create a text offset from a u32."},"warnings":[],"env_vars":null,"search_vec":"'editor':11 'newtyp':4,10 'offset':7,9 'size':3 'text':2,6,8 'text-siz':1","created_at":"2026-06-16T16:55:45.510009+00:00","updated_at":"2026-06-16T16:55:45.510009+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/rust-analyzer/text-size","github":"https://github.com/rust-analyzer/text-size","docs":"https://docs.rs/text-size/","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}}