{"id":15031009,"url":"https://github.com/mokira3d48/rust-binary-search","last_synced_at":"2026-02-07T09:32:47.988Z","repository":{"id":256355656,"uuid":"855012807","full_name":"mokira3d48/rust-binary-search","owner":"mokira3d48","description":"An implementation of the binary search algorithm in Rust.","archived":false,"fork":false,"pushed_at":"2024-09-10T07:55:55.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-05T02:39:18.771Z","etag":null,"topics":["binary-search","rust-lang","searching-algorithms"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mokira3d48.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-10T06:39:50.000Z","updated_at":"2024-09-10T07:56:13.000Z","dependencies_parsed_at":"2024-09-10T09:33:54.086Z","dependency_job_id":"18806988-3505-4d33-8109-aaceafbe55b1","html_url":"https://github.com/mokira3d48/rust-binary-search","commit_stats":null,"previous_names":["mokira3d48/rust-binary-search"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mokira3d48/rust-binary-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mokira3d48%2Frust-binary-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mokira3d48%2Frust-binary-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mokira3d48%2Frust-binary-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mokira3d48%2Frust-binary-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mokira3d48","download_url":"https://codeload.github.com/mokira3d48/rust-binary-search/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mokira3d48%2Frust-binary-search/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29191407,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["binary-search","rust-lang","searching-algorithms"],"created_at":"2024-09-24T20:14:43.560Z","updated_at":"2026-02-07T09:32:47.973Z","avatar_url":"https://github.com/mokira3d48.png","language":"Rust","readme":"# Rust Binary Search\nAn implementation of the binary search algorithm in Rust.\n\n## Usage\n\n```rust\nmod binary_search;\n\nfn main() {\n    let array_sorted: Vec\u003ci32\u003e = vec![2, 3, 4, 5, 6];\n    // We want to find number 5 and 10 in this array:\n    let result1 = binary_search::find(array_sorted.as_slice(), 5);\n    let result2 = binary_search::find(array_sorted.as_slice(), 10);\n\n    match result1 {\n      Some(pos) =\u003e println!(\"The position of {} is: {}\", 5, pos),\n      None =\u003e println!(\"The number {} is not found.\", 5),\n    };\n    match result2 {\n      Some(pos) =\u003e println!(\"The position of {} is: {}\", 10, pos),\n      None =\u003e println!(\"The number {} is not found.\", 10),\n    };\n}\n```\n\nOutput:\n\n```\nThe position of 5 is: 3\nThe number 10 is not found.\n```\n\n\u003c!-- ## Testing\n\n```sh\ncargo watch -q -c -w src/ -x 'test -- --include-ignored'\n```\n--\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmokira3d48%2Frust-binary-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmokira3d48%2Frust-binary-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmokira3d48%2Frust-binary-search/lists"}