{"id":18867014,"url":"https://github.com/njs-guy/in-range-rs","last_synced_at":"2026-02-13T08:30:16.251Z","repository":{"id":65494519,"uuid":"593377161","full_name":"njs-guy/in-range-rs","owner":"njs-guy","description":"Returns true if a number is in range","archived":false,"fork":false,"pushed_at":"2023-01-29T20:44:17.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T17:19:32.872Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/njs-guy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-25T21:21:04.000Z","updated_at":"2023-01-25T21:29:26.000Z","dependencies_parsed_at":"2023-02-14T13:15:47.104Z","dependency_job_id":null,"html_url":"https://github.com/njs-guy/in-range-rs","commit_stats":null,"previous_names":["njs-guy/in-range-rs","njshockey/in-range-rs"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njs-guy%2Fin-range-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njs-guy%2Fin-range-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njs-guy%2Fin-range-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njs-guy%2Fin-range-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/njs-guy","download_url":"https://codeload.github.com/njs-guy/in-range-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239816477,"owners_count":19701753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T05:08:13.953Z","updated_at":"2026-02-13T08:30:16.220Z","avatar_url":"https://github.com/njs-guy.png","language":"Rust","readme":"# In range\n\nA Rust library to return true if a number is in range.\n\n## Usage\n\nFirst, install the library with\n\n```bash\ncargo add in_range\n```\n\nThen, in code:\n\n```rs\nuse in_range::in_range;\n\n// Args: value, min, max\nlet result = in_range(10, 1, 15);\n\nprint!(\"{}\", result);\n// Prints true;\n```\n\nYou can also use `not_in_range` to return *false* when value is in range.\n\n```rs\nuse in_range::not_in_range;\n\n// Args: value, min, max\nlet result = not_in_range(25, 1, 15);\n\nprint!(\"{}\", result);\n// Prints true;\n```\n\n## License\n\nIn range uses the Rust standard MIT/Apache-2.0 dual license for best\ncompatibility. See\n[LICENSE-APACHE.txt](LICENSE-APACHE.txt) and [LICENSE-MIT.txt](LICENSE-MIT.txt)\nfor the full licenses.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjs-guy%2Fin-range-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnjs-guy%2Fin-range-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjs-guy%2Fin-range-rs/lists"}