{"id":29552597,"url":"https://github.com/markcda/frodo-ring","last_synced_at":"2025-07-18T05:11:17.139Z","repository":{"id":304422189,"uuid":"1018749937","full_name":"markcda/frodo-ring","owner":"markcda","description":"Кольцевая очередь с порядком FIFO, не использующая аллокации","archived":false,"fork":false,"pushed_at":"2025-07-13T00:44:16.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-13T02:37:52.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.rs/frodo-ring","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/markcda.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,"zenodo":null}},"created_at":"2025-07-13T00:39:48.000Z","updated_at":"2025-07-13T01:56:26.000Z","dependencies_parsed_at":"2025-07-13T02:52:07.257Z","dependency_job_id":null,"html_url":"https://github.com/markcda/frodo-ring","commit_stats":null,"previous_names":["markcda/frodo-ring"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/markcda/frodo-ring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcda%2Ffrodo-ring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcda%2Ffrodo-ring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcda%2Ffrodo-ring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcda%2Ffrodo-ring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markcda","download_url":"https://codeload.github.com/markcda/frodo-ring/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcda%2Ffrodo-ring/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265703769,"owners_count":23814076,"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":"2025-07-18T05:11:15.919Z","updated_at":"2025-07-18T05:11:17.131Z","avatar_url":"https://github.com/markcda.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# frodo-ring\n\nПредоставляет реализацию очереди FIFO на кольцевом буфере, не использующем аллокации.\n\nПример:\n\n```rust\nfn main() -\u003e Result\u003c(), u8\u003e {\n    let mut ring = FrodoRing::\u003cu8, 4\u003e::new();\n\n    ring.push(0x1)?;\n    ring.push(0x2)?;\n    ring.push(0x3)?;\n    ring.push(0x4)?;\n\n    println!(\"Первая ячейка: {}\", ring.at(0).unwrap());\n    println!(\"Последняя ячейка: {}\", ring.at(-1).unwrap());\n\n    ring.remove_at(1);\n\n    assert_eq!(ring.at(0), Some(\u00260x1));\n    assert_eq!(ring.at(1), None);\n    assert_eq!(ring.at(2), Some(\u00260x3));\n    assert_eq!(ring.at(3), ring.at(-1));\n\n    assert_eq!(ring.get(0), Some(\u00260x1));\n    assert_eq!(ring.get(1), Some(\u00260x3));\n    assert_eq!(ring.get(2), Some(\u00260x4));\n\n    let pos = ring.position(|el| *el == 0x3).unwrap();\n    assert_eq!(ring.remove_at(pos), Some(0x3));\n\n    println!(\"Элементы:\");\n    for el in ring.iter() {\n        println!(\"\\t{el}\");\n    }\n\n    assert_eq!(ring.used(), 4);\n    assert_eq!(ring.len(), 2);\n\n    assert_eq!(ring.pick(), Some(0x1));\n\n    assert_eq!(ring.used(), 1);\n    assert_eq!(ring.len(), 1);\n\n    Ok(())\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkcda%2Ffrodo-ring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkcda%2Ffrodo-ring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkcda%2Ffrodo-ring/lists"}